We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9db4e1 commit d04498eCopy full SHA for d04498e
1 file changed
editor/next.config.js
@@ -1,3 +1,4 @@
1
+const TerserPlugin = require("terser-webpack-plugin");
2
const withTM = require("next-transpile-modules")([
3
// region @editor-app
4
"@editor-app/live-session",
@@ -99,6 +100,13 @@ module.exports = withTM({
99
100
test: /\.mjs$/,
101
include: /node_modules/,
102
});
103
+
104
+ const terser = config.optimization.minimizer.find(
105
+ (m) => m.constructor.name === "TerserPlugin"
106
+ );
107
+ // for @flutter-builder classname issue
108
+ terser.options.terserOptions.keep_classnames = true;
109
110
return config;
111
},
112
async redirects() {
0 commit comments