A Rollup plugin that removes Flow type annotations from JavaScript files without leaving extra whitespace. Current stable version 1.0.0. Useful for developers using Flow type checking who want to produce clean output after stripping types, avoiding double spaces or blank lines that other plugins may leave. Minimal and focused utility, likely with low release cadence.
npm install rollup-plugin-flow-no-whitespaceVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use the plugin in a Rollup configuration to remove Flow types without whitespace artifacts.
Use flowNoWhitespace() with parentheses in the plugins array.
Consider using other plugins for additional transformation needs.
Consider migrating to TypeScript or using a more maintained plugin.
Check compatibility; plugin was likely built for Rollup v2.
Test output thoroughly to ensure whitespace is as expected.
npm install flow-remove-types
Use flowNoWhitespace() instead of just flowNoWhitespace
Ensure flowNoWhitespace() plugin is included in the plugins array before other plugins that parse JavaScript