一覧へ戻る
leebyron/rollup-plugin-flow(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin for removing Flow type annotations.
- star 数
- 81
- watcher 数
- 1
- fork 数
- 11
- issue 数
- 5
- 最終更新
- 2020/09/01
主要言語: JavaScript
Rollup plugin for removing Flow type annotations.
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'); rollup({ entry: 'main.js', plugins: [ flow() ] }).then(...);
Provide options as an object argument to flow().
Default: false
var flow = require('rollup-plugin-flow'); module.exports = { plugins: [ flow({ all: true }) ], format: 'cjs' };
Default: false
Note: Typically source maps are not necessary for this transform, however source maps are recommended when generating "pretty" results.
var flow = require('rollup-plugin-flow'); module.exports = { plugins: [ flow({ pretty: true }) ], format: 'cjs' };