A Webpack loader that removes all calls to the `debug` library and its associated require statements from your production code. v0.1.0, last release in 2021, no active maintenance. It specifically targets `debug(…)` function calls and `require('debug')` patterns, with no configuration parameters. Similar to strip-loader but limited to debug and only works for CommonJS require, not ES module imports. No updates or security patches since release.
npm install webpack-remove-debugVerified import paths — ran on the pinned version, not inferred.
Shows Webpack configuration and the difference between require and import: only require-style debug usage is stripped.
Use `const debug = require('debug')('...')` instead of import, or use an alternative loader that supports ES modules.Ensure debug calls are in the form `debug('message', ...);` for removal.Use a more thorough stripping tool like strip-loader or babel-plugin-transform-remove-console for production.
Run `npm install --save-dev webpack-remove-debug`.
Ensure the rule is added before other loaders (e.g., babel-loader). Example: `{ test: /\.js$/, use: [{ loader: 'webpack-remove-debug' }, { loader: 'babel-loader' }] }`Change `import debug from 'debug'` to `const debug = require('debug')('...')`. Or omit loader and handle differently.No dependency data recorded yet.