{"library":"remove-flow-types-loader","title":"remove-flow-types-loader","description":"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.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install remove-flow-types-loader"],"cli":null},"imports":["module.exports = { module: { rules: [{ test: /\\.jsx?$/, enforce: 'pre', use: ['remove-flow-types-loader'] }] } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst path = require('path');\n\nmodule.exports = {\n  mode: 'development',\n  entry: './src/index.js',\n  output: {\n    filename: 'bundle.js',\n    path: path.resolve(__dirname, 'dist')\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.jsx?$/,\n        enforce: 'pre',\n        use: ['remove-flow-types-loader'],\n        include: path.join(__dirname, 'src')\n      }\n    ]\n  }\n};","lang":"javascript","description":"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}