An AMD loader plugin for Babel
JavaScript HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
.gitignore
README.md
babel-5.8.34.min.js
bower.json
es6.js Include the file extension for `sourceFileName`. Aug 20, 2015
package.json

README.md

Babel (6to5) Plugin

A Babel loader plugin for RequireJS.

Installation

  $ npm install -g bower
  $ bower install requirejs-babel

Usage

Add the paths to configuration:

  paths: {
    es6: '...path_to_bower/requirejs-babel/es6',
    babel: '...path_to_bower/requirejs-babel/babel-5.8.22.min'
  }

Reference files via the es6! plugin name:

  define(['es6!your-es6-module'], function(module) {
    // ...
  });