Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-preset-webpack

webpack-contrib21MIT1.0.0

Provides Webpacks's es2015 Babel preset

babel, es2016, javascript

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.0 (2017-01-28)

1.0.0-alpha.1 (2017-01-27)

Features

  • babel: add base plugins (49ab5f1)
  • babel: add preset module (7324b92)
  • babel: add proposal plugins (380c578)
  • demo: add es6 demo plugin code (e7e5a8a)
  • demo: add original demo plugin code (a501605)

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.