Skip to content

orlin/babel-preset-es2015-mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-preset-es2015-mod Dependency Status

Babel preset for all es2015 plugins, modified to enable --loose es6.modules.

The code modifies babel-preset-es2015 just a little bit. I had to mix es2015 modules with old-school node modules. This is what I came up with.

Install

NPM

$ npm install --save-dev babel-preset-es2015-mod

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es2015-mod"]
}

Via CLI

$ babel script.js --preset es2015-mod

Via Node API

require("babel-core").transform("code", {
  presets: ["es2015-mod"]
});

About

all babel es2015 plugins, with loose modules enabled

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published