Possibly fixes i18n issues by disabling concatenateModules from production webpack. #745.
This commit is contained in:
parent
e842645b5c
commit
35b4a6560b
|
@ -10,7 +10,7 @@ const terserPlugin = new TerserPlugin({
|
||||||
comments: /translators:/i,
|
comments: /translators:/i,
|
||||||
},
|
},
|
||||||
mangle: {
|
mangle: {
|
||||||
reserved: ["__"],
|
reserved: [ '__', '_n', '_nx', '_x' ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ module.exports = merge(common, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
devtool: undefined,
|
devtool: undefined,
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: true,
|
concatenateModules: false,
|
||||||
minimizer: [terserPlugin]
|
minimizer: [terserPlugin]
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in New Issue