webpack-output-babel
A Webpack plugin to apply Babel transforms to output chunks.
Usage
In webpack.config.js
:
const OutputBabelPlugin = ; const babelOptions = plugins: 'transform-remove-console' 'transform-minify-booleans' compact: true; moduleexports = ... plugins: babelOptions ;
All plugin options are passed to Babel – use the same keys as in
.babelrc
.
Installation
npm install webpack webpack-plugin-output-babel
Caveats
No attempt is currently made to preserve source maps.