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

broccoli-es6modules

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-es6modules

An es6 module transpiler & concatenator for broccoli.

  • 0.4.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
increased by102.19%
Maintainers
3
Weekly downloads
 
Created
Source

#broccoli-es6modules This is a broccoli filter that transpiles every file in its input tree from ES6 to AMD, CommonJS, or UMD.

In combination with broccoli-funnel (for choosing which files you want) and broccoli-sourcemap-concat, we can build a flexible pipeline for distributing ES6 sourcecode to the browser.

Examples

//By default compiles to AMD
var transpileES6 = require('broccoli-es6modules');
var tree = transpileES6(originalTree);

//Compile to CommonJS or UMD
var transpileES6 = require('broccoli-es6modules');
var cjsTree = transpileES6(originalTree, {
  format: 'cjs'
});
var umdTree = transpileES6(originalTree, {
  format: 'umd'
});

FAQs

Package last updated on 04 Feb 2015

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