diff --git a/build/rollup.config.base.js b/build/rollup.config.base.js index 13afd8e8..2ef97e9f 100644 --- a/build/rollup.config.base.js +++ b/build/rollup.config.base.js @@ -131,18 +131,14 @@ export default function(mode) { replace({ 'process.env.PLAYER_VERSION': `'${version}'`, }), + resolve({ + customResolveOptions: { + moduleDirectory: /min|umd|iife/.test(mode) ? [ 'src', 'node_modules' ] : [ 'src' ], + }, + }), visualizer({ filename: `bundle-size/${mode}.html`, }), - ].concat(/min|umd|iife/.test(mode) - ? [ - resolve({ - customResolveOptions: { - moduleDirectory: [ 'src', 'node_modules' ], - }, - }), - ] - : [] - ), + ], }; } diff --git a/bundle-size/common.html b/bundle-size/common.html index 2a5f3b19..74ad82f4 100644 --- a/bundle-size/common.html +++ b/bundle-size/common.html @@ -144,7 +144,7 @@

RollUp Visualizer

- + + + +