Last active
November 7, 2017 02:43
-
-
Save mdps513/251eb2d89ab425920def648c335f8fcc to your computer and use it in GitHub Desktop.
Babelをコマンドラインから実行したい時 ref: http://qiita.com/mdps513/items/31b68b115cdfeedb1eb8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { "presets": ["es2015"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const x3 = (n) => n * 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ node_modules/.bin/babel arrow-test.js --presets es2015 | |
| "use strict"; | |
| var x3 = function x3(n) { | |
| return n * 3; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment