diff --git a/packages/nocodb/webpack.config.js b/packages/nocodb/webpack.config.js index 4e3789a283..0fd0df3bec 100644 --- a/packages/nocodb/webpack.config.js +++ b/packages/nocodb/webpack.config.js @@ -2,7 +2,6 @@ const path = require('path'); const nodeExternals = require('webpack-node-externals'); const webpack = require('webpack'); const CopyPlugin = require('copy-webpack-plugin'); -// const TerserPlugin = require('terser-webpack-plugin'); module.exports = { @@ -24,7 +23,13 @@ module.exports = { optimization: { minimize: true, //Update this to true or false - minimizer: [new TerserPlugin()], + minimizer: [ + new TerserPlugin({ + terserOptions: { + keep_classnames: true, + }, + }), + ], nodeEnv: false, }, externals: [nodeExternals()], diff --git a/packages/nocodb/webpack.local.config.js b/packages/nocodb/webpack.local.config.js index 606beb2fe2..ee7a15d7ab 100644 --- a/packages/nocodb/webpack.local.config.js +++ b/packages/nocodb/webpack.local.config.js @@ -23,7 +23,13 @@ module.exports = { optimization: { minimize: true, //Update this to true or false - minimizer: [new TerserPlugin()], + minimizer: [ + new TerserPlugin({ + terserOptions: { + keep_classnames: true, + }, + }), + ], nodeEnv: false, }, externals: [