build: fix runtimeCompile global injection
This commit is contained in:
parent
2d6d5d4517
commit
bd0bc3b3e6
@ -77,7 +77,7 @@ function createConfig(output, plugins = []) {
|
|||||||
const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
|
const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
|
||||||
const isBundlerESMBuild = /\.esm\.js$/.test(output.file)
|
const isBundlerESMBuild = /\.esm\.js$/.test(output.file)
|
||||||
const isBrowserESMBuild = /esm-browser(\.prod)?\.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) {
|
if (isGlobalBuild) {
|
||||||
output.name = packageOptions.name
|
output.name = packageOptions.name
|
||||||
|
Loading…
Reference in New Issue
Block a user