我已将安装了babel-cli
,但是用了官方实例测试之后会报错,如下:
File 0No Issuesnode_modules\babel-core\index.js1:1
LFUTF-8Babel ES6 JavaScript
LB: Babel v5.8.38 Transpiler Error
[BABEL] E:\Introduction2ES6Standard\example-language-babel\Source Files\Transpile In Place\test1.babel: Unknown option: E:\Introduction2ES6Standard\example-language-babel\Source Files\Transpile In Place\.babelrc.presets
Using babel-core at
E:\Introduction2ES6Standard\node_modules\babel-core\index.js
我是刚用atom准备学ES6和react的新手,求解,不胜感激。
安装 babel 6.x
6.x 过后 babel 只是一个平台,其余的靠插件和 preset 来实现。
主要的配置文件是:.babelrc
主要需要安装 babel-core 等,可以去 http://babeljs.io/docs/plugins/ 了解。