From 5bc18f46c67aeee3e9a69b9ecb9cfc4347a96b83 Mon Sep 17 00:00:00 2001 From: Yida Date: Sun, 6 Oct 2019 23:31:44 +0800 Subject: [PATCH] chore: fix typo in rollup.config.js (#122) --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 4937f618..4e875fdf 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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]))