flow-require
use .flow.js
extension
How to use
# use # use your react-tools option harmony: true sourceMap: true sourceFilename: 'source.js' stripTypes: true
Default Option is {harmony: true, stripTypes: true}
See transform options here https://www.npmjs.org/package/react-tools
Example
a.flow.js
/* @flow */moduleexports = {}
main.js