We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"autoprefixer": "^6.x", "babel-core": "^6.5.2", /** babel也可用于浏览器。但是,从babel6.0开始,不再提供浏览器的版本,而是要用构建工具构建出来。如果你没有或者没有使用构建工具,只有通过安装5.x或以上的babel-core模块获取。安装完之后,即可在当前目录的 node_modules/babel-core/子目录下找到babel的浏览器版本*browser.js 。 然后将下面的代码插入网页: <script src="node_model/babel-core/browser.js"></script> <script type="text/babel"> //你的es6代码 </script> 上面的代码中,browser.js是babel提供的转换器脚本,可以在浏览器中运行。用户的ES6脚本放在script标签中,但是要注明type=“text/babel” 这种写法是实时将ES6代码转换成ES5代码,对网页性能会有影响。*/ "babel-eslint": "^4.1.8", "babel-loader": "^6.2.2", "babel-plugin-add-module-exports": "^0.1.2", "babel-plugin-transform-runtime": "6.x", "babel-preset-es2015-ie": "6.x", "babel-preset-react": "^6.3.13", "babel-preset-stage-0": "^6.3.13",
The text was updated successfully, but these errors were encountered:
Babel 入门教程 作者: 阮一峰 http://www.ruanyifeng.com/blog/2016/01/babel.html
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: