diff --git a/package-lock.json b/package-lock.json index 5a75fa4cf..b6849ee85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,7 +57,7 @@ "rollup-plugin-web-worker-loader": "^1.6.1", "serve": "^12.0.1", "ts-jest": "^27.0.7", - "tslib": "^2.3.1", + "tslib": "^2.4.0", "tslint": "^6.1.3", "tslint-config-security": "^1.16.0", "typedoc": "0.18.0", @@ -14003,9 +14003,9 @@ } }, "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", "dev": true }, "node_modules/tslint": { @@ -25924,9 +25924,9 @@ } }, "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", "dev": true }, "tslint": { diff --git a/package.json b/package.json index a19eae2f1..9d86cd094 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "rollup-plugin-web-worker-loader": "^1.6.1", "serve": "^12.0.1", "ts-jest": "^27.0.7", - "tslib": "^2.3.1", + "tslib": "^2.4.0", "tslint": "^6.1.3", "tslint-config-security": "^1.16.0", "typedoc": "0.18.0", diff --git a/rollup.config.js b/rollup.config.js index 8388c9b2c..9a4c95773 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -48,7 +48,13 @@ const getPlugins = shouldMinify => { } }), replace({ 'process.env.NODE_ENV': `'${process.env.NODE_ENV}'` }), - shouldMinify && terser(), + shouldMinify + ? terser() + : terser({ + compress: false, + mangle: false, + format: { beautify: true } + }), sourcemaps() ]; };