Skip to content

Commit c3e1c81

Browse files
committed
build: warn invalid format in build script
1 parent c9b9ae3 commit c3e1c81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rollup.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ if (process.env.NODE_ENV === 'production') {
6868
export default packageConfigs
6969

7070
function createConfig(format, output, plugins = []) {
71+
if (!output) {
72+
console.log(require('chalk').yellow(`invalid format: "${format}"`))
73+
process.exit(1)
74+
}
75+
7176
output.externalLiveBindings = false
7277

7378
const isProductionBuild =

0 commit comments

Comments
 (0)