chore: fix typo in rollup.config.js (#122)

This commit is contained in:
Yida 2019-10-06 23:31:44 +08:00 committed by Evan You
parent d2d32d3810
commit 5bc18f46c6

View File

@ -51,8 +51,8 @@ const configs = {
}
const defaultFormats = ['esm', 'cjs']
const inlineFromats = process.env.FORMATS && process.env.FORMATS.split(',')
const packageFormats = inlineFromats || packageOptions.formats || defaultFormats
const inlineFormats = process.env.FORMATS && process.env.FORMATS.split(',')
const packageFormats = inlineFormats || packageOptions.formats || defaultFormats
const packageConfigs = process.env.PROD_ONLY
? []
: packageFormats.map(format => createConfig(configs[format]))