Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Babel (6to5) Plugin

A Babel loader plugin for RequireJS.

Installation

npm install --save-dev requirejs-babel babel babel-plugin-module-resolver-standalone

Usage

Add the paths to configuration:

  paths: {
    es6: '...node_modules/requirejs-babel/es6',
    babel: '...node_modules/@babel/standalone/babel.min',
    'babel-plugin-module-resolver': '...node_modules/babel-plugin-module-resolver-standalone/index'
  }

Reference files via the es6! plugin name:

  define(['es6!your-es6-module'], function(module) {
    // ...
  });
You can’t perform that action at this time.