{"library":"null-loader","title":"null-loader","description":"A webpack loader that returns an empty module, useful for silencing unwanted imports (e.g., polyfills) in your bundle. Current stable version is 4.0.1 (released 2020-10-09), supporting webpack 4 and 5. Maintained under the webpack-contrib organization. Unlike other loaders, it provides a minimal no-op module instead of stripping imports entirely.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install null-loader"],"cli":null},"imports":["module.exports = { module: { rules: [{ test: /polyfill\\.js$/, use: 'null-loader' }] } }","const NullLoader = require('null-loader');","use: require.resolve('null-loader')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst path = require('path');\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: path.resolve(__dirname, 'node_modules/some-polyfill/index.js'),\n        use: 'null-loader',\n      },\n    ],\n  },\n};","lang":"javascript","description":"Basic webpack configuration to replace a polyfill module with an empty module using null-loader.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}