Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

webpack-contrib/babel-preset-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm deps test coverage chat

Webpack Babel Preset

Provides Webpacks's es2015 Babel preset.

Install

npm i -D babel-preset-webpack

Usage

Via .babelrc

.babelrc

{
  "presets": ["webpack"]
}

Via CLI

$ 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

Maintainers


Joshua Wiens

Juho Vepsäläinen