{"library":"rollup-plugin-flow","title":"rollup-plugin-flow","description":"A Rollup plugin to strip Flow type annotations from JavaScript/Flow files before bundling, using flow-remove-types under the hood. Current stable version is 1.1.1, with minimal maintenance cadence. It transforms files containing @flow comments by default, with an option to process all files. Provides a 'pretty' mode that removes types without adding whitespace. Differentiators: lightweight and fast compared to full Flow transformation; does not require Flow itself to run; integrates seamlessly with Rollup's build pipeline.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-flow"],"cli":null},"imports":["import flow from 'rollup-plugin-flow'","import flow from 'rollup-plugin-flow';\nplugins: [ flow({ all: true }) ]","import flow from 'rollup-plugin-flow';\nexport default {\n  input: 'src/index.js',\n  plugins: [flow()]\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import flow from 'rollup-plugin-flow';\nimport { rollup } from 'rollup';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    flow({\n      all: true,\n      pretty: false\n    })\n  ]\n});\n\nconst { output } = await bundle.generate({ format: 'esm' });\nconsole.log(output[0].code);","lang":"javascript","description":"Basic usage: import the default export, call it with options, pass as plugin to Rollup.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}