Skip to content
Snippets Groups Projects
Commit 57c202e0 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

rollup: Only treeshake in dev mode

parent f69c5a3e
No related branches found
No related tags found
No related merge requests found
Pipeline #87580 passed
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment