https://github.com/jonmbake/babel-plugin-transform-es2015-modules-requirejs
Babel plugin to transform ES2015 modules to AMD using RequireJS's common JS wrapper.
https://github.com/jonmbake/babel-plugin-transform-es2015-modules-requirejs
Last synced: 12 months ago
JSON representation
Babel plugin to transform ES2015 modules to AMD using RequireJS's common JS wrapper.
- Host: GitHub
- URL: https://github.com/jonmbake/babel-plugin-transform-es2015-modules-requirejs
- Owner: jonmbake
- Created: 2016-11-29T00:57:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T00:04:02.000Z (over 7 years ago)
- Last Synced: 2025-05-20T15:12:44.530Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-transform-es2015-modules-requirejs
A [Babel](https://github.com/babel/babel) plugin to transform ES2015 modules to AMD using [RequireJS's common JS wrapper](http://requirejs.org/docs/commonjs.html#manualconversion).
```
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;
});
```