Removes Flow type annotations with Taskr
npm install @taskr/unflow> Removes Flow type annotations with Taskr.
```
$ npm install --save-dev @taskr/unflow
`js`
exports.build = function * (task) {
yield task.source('src/*/.js').unflow({
all: false,
sourceMap: 'inline'
}).target('lib');
};
#### options.all
Type: Booleantrue
Default:
Transforms _all_ files; not just those with a "@flow" comment.
#### options.pretty
Type: Booleantrue
Default:
Remove whitespace where annotations used to be. See here for more info.
#### options.sourceMap
Type: Stringinternal|external
Options: ''
Default:
Create an inline or an external sourcemap for each entry file. A sourceMappingURL comment is appended to each destination file.
> If using external maps, a foo.js entry will also generate a foo.js.map file.
Any issues or questions can be sent to the Taskr monorepo.
Please be sure to specify that you are using @taskr/unflow`.
MIT © Luke Edwards