rollup-plugin-flow
Remove Flow type annotations before bundling.
Last updated 8 years ago by leebyron .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rollup-plugin-flow 
SYNC missed versions from official npm registry.

Rollup Flow plugin

Build Status

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

Install

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

rollup({
  entry: 'main.js',
  plugins: [ flow() ]
}).then(...);

Options

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'
};

Current Tags

  • 1.1.1                                ...           latest (8 years ago)

4 Versions

  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE