Rollup plugin for removing Flow type annotations.

License: BSD-3-Clause

Language: JavaScript

Rollup Flow plugin

Build Status

This Rollup plugin will remove Flow type annotations during bundling using flow-remove-types.


npm install --save rollup-plugin-flow
var rollup = require('rollup').rollup;
var flow = require('rollup-plugin-flow');

  entry: 'main.js',
  plugins: [ flow() ]


Provide options as an object argument to flow().

all - Transform all files, not just those containing @flow comments.

Default: false

var flow = require('../');

module.exports = {
  plugins: [ flow({ all: true }) ],
  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 = require('../');

module.exports = {
  plugins: [ flow({ pretty: true }) ],
  format: 'cjs'

Project Statistics

Sourcerank 11
Repository Size 6.84 KB
Stars 65
Forks 6
Watchers 2
Open issues 4
Dependencies 3
Contributors 2
Tags 3
Last updated
Last pushed

Top Contributors See all

Lee Byron Bogdan Chadkin

Packages Referencing this Repo

Remove Flow type annotations before bundling.
Latest release 1.1.1 - Updated - 65 stars

Recent Tags See all

v1.1.1 December 08, 2016
v1.1.0 December 08, 2016
v1.0.1 August 08, 2016

Something wrong with this page? Make a suggestion

Last synced: 2016-12-08 21:31:27 UTC

Login to resync this repository