From 9f3705fe78d327555ccaa828e6fe7185a1acf1dc Mon Sep 17 00:00:00 2001 From: atomiks Date: Tue, 2 Jan 2018 02:47:03 +1100 Subject: [PATCH] don't need to be funcs --- scripts/rollup.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/rollup.js b/scripts/rollup.js index 1e5431fd1..216ba426c 100644 --- a/scripts/rollup.js +++ b/scripts/rollup.js @@ -9,16 +9,16 @@ const DIST = './dist'; if (!fs.existsSync(DIST)) fs.mkdirSync(DIST); -const es5 = () => babel({ presets: [['env', { modules: false }]] }); -const min = () => minify({ comments: false }); +const es5 = babel({ presets: [['env', { modules: false }]] }); +const min = minify({ comments: false }); (async () => { const bundle = await rollup({ input: INPUT_FILE }); - const bundleES5 = await rollup({ input: INPUT_FILE, plugins: [es5()] }); - const bundleMin = await rollup({ input: INPUT_FILE, plugins: [min()] }); + const bundleES5 = await rollup({ input: INPUT_FILE, plugins: [es5] }); + const bundleMin = await rollup({ input: INPUT_FILE, plugins: [min] }); const bundleES5Min = await rollup({ input: INPUT_FILE, - plugins: [es5(), min()] + plugins: [es5, min] }); // UMD ES2017