Skip to content

Commit 260eab8

Browse files
committed
build: fix isBundlerESMBuild check in rollup.js
1 parent 6f3e768 commit 260eab8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ function createConfig(output, plugins = []) {
7575
const isProductionBuild =
7676
process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file)
7777
const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
78-
const isBundlerESMBuild = /\.esm\.js$/.test(output.file)
78+
const isBundlerESMBuild = /\.esm-bundler\.js$/.test(output.file)
7979
const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file)
8080
const isRuntimeCompileBuild = /\/vue\./.test(output.file)
8181

82+
console.log(isBundlerESMBuild)
83+
8284
if (isGlobalBuild) {
8385
output.name = packageOptions.name
8486
}

0 commit comments

Comments
 (0)