1.0.0 • Published 7 years ago

babel-preset-webpack v1.0.0

Weekly downloads
19
License
MIT
Repository
github
Last release
7 years ago

npm deps test coverage chat

npm i -D babel-preset-webpack

Via .babelrc

.babelrc

{
  "presets": ["webpack"]
}

Via CLI

$ babel script.js --presets webpack 

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