thread-loader
thread-loader copied to clipboard
`LoaderContext.mode` is missing when run by `thread-loader`
- Operating System: macOS 11.4
- Node Version: v16.3.0
- NPM Version: 7.15.1
- webpack Version: 4.46.0 / 5.45.1
- thread-loader Version: 3.0.4
Expected Behavior
this.mode in a loader is consistent when running with or without thread-loader
Actual Behavior
this.mode is always undefined when running inside thread-loader
How Do We Reproduce?
https://github.com/yyx990803/thread-loader-bug
PR welcome :+1: