From 7faa5a3ce604506b747840b6194e392bb054f0cd Mon Sep 17 00:00:00 2001 From: David O'Regan Date: Thu, 1 Oct 2020 08:10:13 +0000 Subject: Handle yarn instant search build and reduce bundle size --- rollup.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rollup.config.js') diff --git a/rollup.config.js b/rollup.config.js index 86b017e5..42664a31 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,10 +20,12 @@ module.exports = glob.sync('content/frontend/**/*.js').map(file => ({ name: file, }, plugins: [ - nodeResolve(), - nodePolyfills(), + nodeResolve({ browser: true, preferBuiltins: true }), commonjs(), - babel(), + nodePolyfills(), + babel({ + exclude: 'node_modules/**', + }), json(), vue(), importResolver({ -- cgit v1.2.3