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

Allow access to full LoaderContext in load and transform hooks for webpack/rspack #403

Closed
1 task done
urbnjamesmi1 opened this issue Aug 23, 2024 · 0 comments · Fixed by #404
Closed
1 task done
Labels
enhancement New feature or request

Comments

@urbnjamesmi1
Copy link
Contributor

Describe the feature

I am currently trying to migrate a custom webpack loader to unplugin. The webpack unplugin needs access to the loader context's request property in the transform hook. The id parameter is just the loader context's resource property.

It would be advantageous to be able to access the build-system's native loader context (if available) from the load and transform hooks. This would make it easier to convert custom loaders to unplugin.

Additional information

  • Would you be willing to help implement this feature?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant