build: warn invalid format in build script
This commit is contained in:
parent
c9b9ae3941
commit
c3e1c812e3
@ -68,6 +68,11 @@ if (process.env.NODE_ENV === 'production') {
|
||||
export default packageConfigs
|
||||
|
||||
function createConfig(format, output, plugins = []) {
|
||||
if (!output) {
|
||||
console.log(require('chalk').yellow(`invalid format: "${format}"`))
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
output.externalLiveBindings = false
|
||||
|
||||
const isProductionBuild =
|
||||
|
Loading…
Reference in New Issue
Block a user