How to get terser webpack plugin works properly
I am trying to understand how to get terser webpack plugin to work in the most simple possible case. This is my code: src/math.js , exports 2 functions. export const double = (x) => x + x; export const triple = (x) => x + x + x; scr/index.js , imports only double function. import { double } from './math.js'; console.log(double(10)); I understood from webpack documentation that I must use ModuleConcatenationPlugin if I want activate tree shaking. This is my webpack config: webpack/index.js const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); module.exports