Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-webpack

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-webpack

Provides Webpacks's es2015 Babel preset

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 28 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc