Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoaderContext.mode is missing when run by thread-loader #123

Open
yyx990803 opened this issue Jul 16, 2021 · 1 comment
Open

LoaderContext.mode is missing when run by thread-loader #123

yyx990803 opened this issue Jul 16, 2021 · 1 comment

Comments

@yyx990803
Copy link

  • 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 yyx990803 changed the title Loader context when run by thread-loader doesn't expose mode LoaderContext.mode is missing when run by thread-loader Jul 16, 2021
@alexander-akait
Copy link
Member

PR welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants