A small project I started make use a node module (installed via npm) that declares const variables. Running and testing this project is well, b
const
Use uglify-es-webpack-plugin is better
const UglifyEsPlugin = require('uglify-es-webpack-plugin') module.exports = { plugins: [ new UglifyEsPlugin({ compress:{ drop_console: true } }), ] }