LoginSignup
0
1

More than 5 years have passed since last update.

babelのインストール

Posted at

babelのインストール

次にbabelのインストールをします。
babelとは、まだブラウザがサポートしていない標準機能を使えるようにコードを変換するnode.js製のjavascriptインタプリタです。

例えば、es2016をes2015に変換したり、Chromeのとあるバージョンに変換したりできます。

babel-cliのインストール

$ npm install --global babel-cli

※「--global」はグローバルインストールをするオプション

es2015, es2016, es2017 のいずれかにコンパイルしたい場合

es2015
$ npm install --global babel-preset-es2015
es2016
$ npm install --global babel-preset-es2016
es2017
$ npm install --global babel-preset-es2017
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1