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
|
export default packageConfigs
|
||||||
|
|
||||||
function createConfig(format, output, plugins = []) {
|
function createConfig(format, output, plugins = []) {
|
||||||
|
if (!output) {
|
||||||
|
console.log(require('chalk').yellow(`invalid format: "${format}"`))
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
output.externalLiveBindings = false
|
output.externalLiveBindings = false
|
||||||
|
|
||||||
const isProductionBuild =
|
const isProductionBuild =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user