thread-loader icon indicating copy to clipboard operation
thread-loader copied to clipboard

`LoaderContext.mode` is missing when run by `thread-loader`

Open yyx990803 opened this issue 4 years ago • 1 comments

  • 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

yyx990803 avatar Jul 16 '21 20:07 yyx990803

PR welcome :+1:

alexander-akait avatar Jul 17 '21 13:07 alexander-akait