Remove unused babel plugins and fix build with profiling

(cherry picked from commit d79f42351fd3d61d180a224d4b8fb51184eb347e)

Close #3625
This commit is contained in:
Benjamin Staneck 2023-05-01 23:57:15 +02:00 committed by Bogdan
commit 4f600c32d4
3 changed files with 28 additions and 68 deletions

View file

@ -253,18 +253,19 @@ module.exports = (env) => {
config.resolve.alias['react-dom$'] = 'react-dom/profiling';
config.resolve.alias['scheduler/tracing'] = 'scheduler/tracing-profiling';
config.optimization.minimizer = [
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: true, // Must be set to true if using source-maps in production
terserOptions: {
mangle: false,
keep_classnames: true,
keep_fnames: true
}
})
];
config.optimization = {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
sourceMap: true, // Must be set to true if using source-maps in production
mangle: false,
keep_classnames: true,
keep_fnames: true
}
})
]
};
}
return config;