Possibly fixes i18n issues by disabling concatenateModules from production webpack. #745.

This commit is contained in:
mateuswetah 2022-11-18 12:07:26 -03:00
parent e842645b5c
commit 35b4a6560b
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const terserPlugin = new TerserPlugin({
comments: /translators:/i,
},
mangle: {
reserved: ["__"],
reserved: [ '__', '_n', '_nx', '_x' ]
}
},
});
@ -19,7 +19,7 @@ module.exports = merge(common, {
mode: 'production',
devtool: undefined,
optimization: {
minimize: true,
concatenateModules: false,
minimizer: [terserPlugin]
},
resolve: {