[Bug] Plugin causes console noise when used alongside debug.js
AdrianBannister opened this issue · comments
- I'd be willing to submit the fix
Describe the bug
When using the DEBUG
environment variable to control what log messages we would like to see while using the debug package we are getting flooded by console.log
messages from this plugin.
To Reproduce
Run a webpack build with this plugin loaded and set the DEBUG
environment variable to anything. It will spit out tons of console.log
messages.
Additional context
The offending code is here:
webpack-virtual-modules/src/index.ts
Lines 137 to 139 in 752ee23
Might I suggest to changing the environment variable being checked to something like WVM_DEBUG
. I'd happily create a PR if you are okay with this.
@AdrianBannister Yep, such a PR sounds good
Closed with #108