A webpack loader that strips Flow type annotations from JavaScript files during bundling using flow-remove-types. Current stable version is 1.1.0, with low release cadence (last update in 2017). Designed as a lightweight alternative to full Babel transpilation, it operates as a pre-loader to remove Flow types without transforming other syntax. Useful for projects that only need type stripping and want faster builds. Compared to babel-plugin-flow-strip-types, this loader is leaner but lacks plugin ecosystem integration.
npm install remove-flow-types-loaderVerified import paths — ran on the pinned version, not inferred.
Configures webpack to run remove-flow-types-loader as a pre-loader on all .js/.jsx files inside the src directory, stripping Flow types before other loaders.
Add 'enforce: "pre"' to the rule object in webpack configuration.
Use module.rules with enforce: 'pre' instead of module.preLoaders.
Refer to flow-remove-types documentation for valid options.
Run 'npm install --save-dev remove-flow-types-loader'
Run 'npm install --save-dev flow-remove-types'