From fe4c1342515e054ca670188325b9b1a7e25f11a0 Mon Sep 17 00:00:00 2001 From: Alperen Elhan Date: Sun, 25 Apr 2021 07:15:32 +0300 Subject: [PATCH] build: remove unused variables from build --- rollup.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index efabe2a..f098121 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -31,6 +31,9 @@ const prefsFooter = [ export default [ { input: 'src/extension.ts', + treeshake: { + moduleSideEffects: 'no-external' + }, output: { file: `${buildPath}/extension.js`, format: 'iife', @@ -72,6 +75,9 @@ export default [ footer: prefsFooter, globals, }, + treeshake: { + moduleSideEffects: 'no-external' + }, external, plugins: [ commonjs(),