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

enb-es2015

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enb-es2015

ENB technology for compiling JS es2015 -> es5

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 22 Dec 2016

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