浏览代码

build: fix runtimeCompile global injection

Evan You 6 年之前
父节点
当前提交
bd0bc3b3e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rollup.config.js

+ 1 - 1
rollup.config.js

@@ -77,7 +77,7 @@ function createConfig(output, plugins = []) {
   const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
   const isBundlerESMBuild = /\.esm\.js$/.test(output.file)
   const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file)
-  const isRuntimeCompileBuild = /^dist\/vue\./.test(output.file)
+  const isRuntimeCompileBuild = /\/vue\./.test(output.file)
 
   if (isGlobalBuild) {
     output.name = packageOptions.name