Provides Webpacks's es2015 Babel preset
Last updated 4 years ago by d3viant0ne .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-preset-webpack 
SYNC missed versions from official npm registry.

npm deps test coverage chat

Webpack Babel Preset

Provides Webpacks's es2015 Babel preset.


npm i -D babel-preset-webpack


Via .babelrc


  "presets": ["webpack"]


$ babel script.js --presets webpack 

Comparison Demo

The repo includes a copy of the extract-text-plugin for the purposes of vetting transpiled output to assist in the selection of ECMA features for this preset.

./demo-app/extract-text-orig: Original application code without modification.

./demo-app/extract-text-babel: es6 features added ( this is a wip ) without making significant changes to code structure.

Run the comparison build

$ npm run build

Babel will output transpiled code & sourcemaps to ./dist


Joshua Wiens

Juho Vepsäläinen

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

2 Versions

  • 1.0.0                                ...           4 years ago
  • 1.0.0-alpha.1                                ...           4 years ago

Copyright 2014 - 2016 © |