Convert ES6+ to ES5 webpack plugin Instruction Completely convert ES6+ to ES5 code Install npm i -D convert2es5-plugin const Convert2es5Plugin = require('convert2es5-plugin') or import Convert2es5Plugin from 'convert2es5-plugin' Add code new Convert2es5Plugin() to plugins in webpack.config.js(or .ts)