vlad 6f123ff03e 18.07 | 6 years ago | |
---|---|---|
.. | ||
lib | 6 years ago | |
.npmignore | 6 years ago | |
README.md | 6 years ago | |
package.json | 6 years ago |
$ npm install babel-plugin-syntax-flow
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-flow"]
}
$ babel --plugins syntax-flow script.js
require("babel-core").transform("code", {
plugins: ["syntax-flow"]
});