Skip to content

Basic ENB tech for transpiling ES2015 JS to ES5 for most browser support.

Notifications You must be signed in to change notification settings

DimitryDushkin/enb-es2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Basic ENB tech for transpiling ES2015 JS to ES5 for most browser support. Includes transpile techs that do not add any runtime.

Features:

  • Converts only project files.
  • Exclude files in ./libs and ./*.blocks/libs/ folders.
  • ES2015 only plugins

Example

// .enb/make.js
//
nodeConfig.addTechs([
    // ...
    // Gather and transpile all *.vanilla.js, *.js, *.browser.js files (by default)
    // to single "<bundleName>/<bundleName>.js" file
    [require('enb-es2015/techs/es2015'), {
        target: '?.js'
    }],
    // ...
]);

Thanks to @tenorok for initial code of tech.

TODO:

  • Configuable babel plugins set;
  • Working sourcemaps.

About

Basic ENB tech for transpiling ES2015 JS to ES5 for most browser support.

Resources

Stars

Watchers

Forks

Packages

No packages published