chore: fix typo in rollup.config.js (#122)
This commit is contained in:
parent
d2d32d3810
commit
5bc18f46c6
@ -51,8 +51,8 @@ const configs = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const defaultFormats = ['esm', 'cjs']
|
const defaultFormats = ['esm', 'cjs']
|
||||||
const inlineFromats = process.env.FORMATS && process.env.FORMATS.split(',')
|
const inlineFormats = process.env.FORMATS && process.env.FORMATS.split(',')
|
||||||
const packageFormats = inlineFromats || packageOptions.formats || defaultFormats
|
const packageFormats = inlineFormats || packageOptions.formats || defaultFormats
|
||||||
const packageConfigs = process.env.PROD_ONLY
|
const packageConfigs = process.env.PROD_ONLY
|
||||||
? []
|
? []
|
||||||
: packageFormats.map(format => createConfig(configs[format]))
|
: packageFormats.map(format => createConfig(configs[format]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user