需要3个依赖
$ npm install --save-dev babel-cli babel-preset-es2015 babel-preset-es2017
Create .babelrc in the project root folder with the following contents:
{ “presets”: [“es2015”,“es2017”] }
需要3个依赖
$ npm install --save-dev babel-cli babel-preset-es2015 babel-preset-es2017
Create .babelrc in the project root folder with the following contents:
{ “presets”: [“es2015”,“es2017”] }