Skip to content

Commit 0e9ffec

Browse files
committed
build: fix production flag
Fix 1143
1 parent f692fdf commit 0e9ffec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function createConfig(buildName, output, plugins = []) {
9090
'@vue/composition-api': 'vueCompositionApi',
9191
}
9292

93-
const isProductionBuild = /\.prod\.[cmj]s$/.test(output.file)
93+
const isProductionBuild = /\.prod\.[cm]?js$/.test(output.file)
9494
const isGlobalBuild = buildName === 'global'
9595
const isRawESMBuild = buildName === 'browser'
9696
const isNodeBuild = buildName === 'cjs'

0 commit comments

Comments
 (0)