I was faced the same problem. I have applied same as @nezto suggest. my project in angular so i have create my own custom-webpack.config.js and applied the code in side other code
minimizer: [
new UglifyJsPlugin({
uglifyOptions: { keep_fnames: true }
})
Now I am facing other problems due to custom-webpack.config.js
My custom-webpack.config.js is below
const { resolve } = require('path');
const rxPaths = require('rxjs/_esm5/path-mapping');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const { CleanCssWebpackPlugin } = require('@angular-devkit/build-angular/src/angular-cli-files/plugins/cleancss-webpack-plugin');
const { HashedModuleIdsPlugin } = require('webpack');
module.exports = {
mode: 'production',
entry: {
main: './src/main.ts',
polyfills: './src/polyfills.ts',
styles: './src/styles.css'
},
output: {
path: resolve('./dist'),
filename: '[name].js',
},
resolve: {
extensions: ['.ts', '.js'],
alias: rxPaths()
},
node: false,
performance: {
hints: false,
},
optimization: {
noEmitOnErrors: true,
runtimeChunk: 'single',
splitChunks: {
cacheGroups: {
default: {
chunks: 'async',
minChunks: 2,
priority: 10
},
common: {
name: 'common',
chunks: 'async',
minChunks: 2,
enforce: true,
priority: 5
},
vendors: false,
vendor: false
}
},
minimizer: [
new HashedModuleIdsPlugin(),
new UglifyJSPlugin({
cache: true,
parallel: true,
uglifyOptions: {
keep_fnames: true,
safari10: true,
output: {
ascii_only: true,
comments: false,
webkit: true,
},
compress: {
pure_getters: true,
passes: 3,
inline: 3,
}
}
}),
new CleanCssWebpackPlugin({
test: (file) => /\.(?:css)$/.test(file),
})
]
}
};
Is their any simple solution in your side (I mean to zoom developer).
My product need to launch by December so please help me to solve this issue.