3.0.0 • Published 7 years ago

enb-es2015 v3.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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.
  • Babel plugins:
    • transform-es2015-arrow-functions,
    • transform-es2015-block-scoped-functions,
    • transform-es2015-function-name,
    • transform-es2015-block-scoping,
    • transform-es2015-destructuring,
    • transform-es2015-parameters,
    • transform-es2015-shorthand-properties,
    • transform-es2015-spread,
    • transform-es2015-template-literals.

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.
3.0.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago