From 04fbf6463bc94d3b0d726720dac5ca454b013500 Mon Sep 17 00:00:00 2001 From: Evgeny Metelkin Date: Mon, 30 Oct 2023 16:30:59 +0200 Subject: [PATCH] fix build issue --- src/build.js | 1 + webpack.config.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/build.js b/src/build.js index 5dc4e3e..938c4d8 100644 --- a/src/build.js +++ b/src/build.js @@ -69,6 +69,7 @@ self.onmessage = (evt) => { try { var container = build(inputDict, declaration); } catch(error) { + //throw error; postMessage({action: 'console', value: contactMessage + '\n'}); postMessage({action: 'console', value: error.stack}); diff --git a/webpack.config.js b/webpack.config.js index 835572b..ed5d7f3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -83,7 +83,9 @@ module.exports = () => { config.optimization = { minimize: true, minimizer: [ - new TerserPlugin(), + new TerserPlugin({ + terserOptions: {keep_classnames: true} + }), new CssMinimizerPlugin(), ], splitChunks: {