build: fix isBundlerESMBuild check in rollup.js
This commit is contained in:
parent
6f3e768d52
commit
260eab85ff
@ -75,10 +75,12 @@ function createConfig(output, plugins = []) {
|
|||||||
const isProductionBuild =
|
const isProductionBuild =
|
||||||
process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file)
|
process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file)
|
||||||
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-bundler\.js$/.test(output.file)
|
||||||
const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file)
|
const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file)
|
||||||
const isRuntimeCompileBuild = /\/vue\./.test(output.file)
|
const isRuntimeCompileBuild = /\/vue\./.test(output.file)
|
||||||
|
|
||||||
|
console.log(isBundlerESMBuild)
|
||||||
|
|
||||||
if (isGlobalBuild) {
|
if (isGlobalBuild) {
|
||||||
output.name = packageOptions.name
|
output.name = packageOptions.name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user