File tree Expand file tree Collapse file tree 3 files changed +39
-10
lines changed
Expand file tree Collapse file tree 3 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 1+ Babel (6to5) Plugin
2+ ===
3+
4+ A [ Babel] ( https://babeljs.io/ ) loader plugin for [ RequireJS] ( http://requirejs.org ) .
5+
6+ Installation
7+ ---
8+
9+ ```
10+ $ npm install -g bower
11+ $ bower install requirejs-babel
12+ ```
13+
14+ Usage
15+ ---
16+
17+ Add the paths to configuration:
18+
19+ ``` javascript
20+ paths: {
21+ es6: ' ...path_to_bower/requirejse-babel/es6' ,
22+ babel: ' ...path_to_bower/requirejse-babel/babel-4.6.6.min'
23+ }
24+ ```
25+
26+ Reference files via the es6! plugin name:
27+ ``` javascript
28+ define ([' es6!your-es6-module' ], function (module ) {
29+ // ...
30+ });
31+ ```
32+
Original file line number Diff line number Diff line change 11{
22 "name" : " requirejs-babel" ,
3- "version" : " 0.0.0 " ,
3+ "version" : " 0.0.1 " ,
44 "authors" : [
5- 5+ 66 ],
77 "description" : " An AMD loader plugin for Babel" ,
88 "main" : " es6.js" ,
1616 ],
1717 "license" : " MIT" ,
1818 "ignore" : [
19- " **/.*" ,
20- " node_modules" ,
21- " bower_components" ,
22- " test" ,
23- " tests"
19+ " demo" ,
20+ " package.json"
2421 ]
2522}
Original file line number Diff line number Diff line change 11{
22 "name" : " requirejs-babel" ,
3- "version" : " 0.0.0 " ,
4- "description" : " " ,
3+ "version" : " 0.0.1 " ,
4+ "description" : " An AMD loader plugin for Babel " ,
55 "main" : " index.js" ,
66 "scripts" : {
77 "test" : " echo \" Error: no test specified\" && exit 1"
88 },
9- "author" : " " ,
9+ "author" :
" Michael <[email protected] > " ,
1010 "license" : " MIT"
1111}
You can’t perform that action at this time.
0 commit comments