Created
April 2, 2016 05:49
-
-
Save lx7575000/71ec2a789e59dece8021ea81df793499 to your computer and use it in GitHub Desktop.
如果希望通过babel转译ES6的代码,需要在项目根目录中创建一个.babelrc文件,并添加如下代码
This file contains 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
{ | |
"presets": ["babel-preset-es2015"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment