Rollup Flow plugin
This Rollup plugin will remove Flow
type annotations during bundling using flow-remove-types
.
Install
npm install --save rollup-plugin-flow
var rollup = rollup;var flow = ; ;
Options
Provide options as an object argument to flow()
.
all
- Transform all files, not just those containing @flow
comments.
Default: false
var flow = ; moduleexports = plugins: format: 'cjs';
pretty
- Remove flow types without replacing them with whitespace.
Default: false
Note: Typically source maps are not necessary for this transform, however source maps are recommended when generating "pretty" results.
var flow = ; moduleexports = plugins: format: 'cjs';