Skip to content

Commit

Permalink
build: fix production flag
Browse files Browse the repository at this point in the history
Fix 1143
  • Loading branch information
posva committed Mar 14, 2022
1 parent f692fdf commit 0e9ffec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function createConfig(buildName, output, plugins = []) {
'@vue/composition-api': 'vueCompositionApi',
}

const isProductionBuild = /\.prod\.[cmj]s$/.test(output.file)
const isProductionBuild = /\.prod\.[cm]?js$/.test(output.file)
const isGlobalBuild = buildName === 'global'
const isRawESMBuild = buildName === 'browser'
const isNodeBuild = buildName === 'cjs'
Expand Down

0 comments on commit 0e9ffec

Please sign in to comment.