targets-webpack-plugin
A babel plugin for transcompilig final bundles so they support legacy browsers.
This plugin runs babel and rollup only once per asset, at the end of the compilation process.
Installation
npm install --save-dev targets-webpack-plugin
or
yarn add --dev targets-webpack-plugin
Usage
Add TargetsPlugin to the list of plugins.
const TargetsPlugin = require("targets-webpack-plugin");
config.plugins.push(new TargetsPlugin({
browsers: ["last 2 versions", "chrome >= 41"]
}))
License
MIT