@lousando/babel-plugin-transform-es2015-modules-requirejs

0.1.2 • Public • Published

babel-plugin-transform-es2015-modules-requirejs

A Babel plugin to transform ES2015 modules to AMD using RequireJS's common JS wrapper.

export var foo = 1;

is transformed to:

define(function (require, exports, module) {
  "use strict";

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  var foo = exports.foo = 1;
});

Package Sidebar

Install

npm i @lousando/babel-plugin-transform-es2015-modules-requirejs

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

3.26 kB

Total Files

6

Last publish

Collaborators

  • lousando