build: warn invalid format in build script

This commit is contained in:
Evan You 2019-12-22 11:56:09 -05:00
parent c9b9ae3941
commit c3e1c812e3

View File

@ -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 =