Babel

Babel

Flow and Babel are designed to work great together. It takes just a few steps to set them up together.

If you don’t have Babel setup already, you can do that by following this guide.

Once you have Babel setup, install babel-preset-flow with either Yarn or npm.

yarn add --dev babel-preset-flow
# or
npm install --save-dev babel-preset-flow

Then add flow to your Babel presets config.

{
  "presets": ["flow"]
}

© 2013–present Facebook Inc.
Licensed under the BSD License.
https://flow.org/en/docs/tools/babel

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部