vlad 6f123ff03e 18.07 | 6 rokov pred | |
---|---|---|
.. | ||
lib | 6 rokov pred | |
.npmignore | 6 rokov pred | |
README.md | 6 rokov pred | |
package.json | 6 rokov pred |
$ 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"]
});