Need private packages and team management tools?Check out npm Teams »

browserify-es6-transpiler

0.0.3 • Public • Published

Browserify ES6 Transpiler

Adds a wrapper around the jstransform and es6-module-jstransform npm packages to transpile ES6 module syntax to CommonJS and ES6 features down to ES5.1

Installation

npm install browserify-es6-transpiler --save-dev

Usage

var browserify = require('browserify');
var browserifyES6Transpiler = require('browserify-es6-transpiler');
 
browserify()
    .require('./src/index.js')
    .transform(browserifyES6Transpiler)
    .bundle()
    ...

Alternatively, to use the transpiler without browserify:

var transpile = require('browserify-es6-transpiler/transpile');
var content = transpile(source);
 
...

Keywords

none

Install

npm i browserify-es6-transpiler

DownloadsWeekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • avatar