build: fix runtimeCompile global injection

This commit is contained in:
Evan You 2019-10-14 21:43:00 -04:00
parent 2d6d5d4517
commit bd0bc3b3e6

View File

@ -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