From 57c202e05e2e895d960900398d3cf766d7f4605e Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 15 Feb 2022 16:21:07 +0100 Subject: [PATCH] rollup: Only treeshake in dev mode --- rollup.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index 55d9001..05d01b5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -27,6 +27,7 @@ const buildFull = (!watch && appEnv !== 'test') || process.env.FORCE_FULL !== un let useTerser = buildFull; let useBabel = buildFull; let checkLicenses = buildFull; +let treeshake = buildFull; let useHTTPS = false; console.log('APP_ENV: ' + appEnv); @@ -101,6 +102,7 @@ export default (async () => { format: 'esm', sourcemap: true, }, + treeshake: treeshake, preserveEntrySignatures: false, // external: ['zlib', 'http', 'fs', 'https', 'url'], onwarn: function (warning, warn) { -- GitLab