-
-
Notifications
You must be signed in to change notification settings - Fork 759
feat: Add ResolverFactory hooks for webpack compatibility #10964
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for rspack canceled.
|
|
Co-authored-by: SyMind <19852293+SyMind@users.noreply.github.com>
Co-authored-by: SyMind <19852293+SyMind@users.noreply.github.com>
📦 Binary Size-limit
🙈 Size remains the same at 59.49MB |
CodSpeed Performance ReportMerging #10964 will not alter performanceComparing Summary
|
This PR implements ResolverFactory hooks to provide webpack compatibility, allowing plugins to intercept and modify resolver creation.
Changes
Added ResolverFactory Hooks
resolveOptions
-SyncWaterfallHook<[ResolveOptionsWithDependencyType, { type: string }]>
resolver
-SyncHook<[Resolver, ResolveOptionsWithDependencyType, { type: string }]>
Implementation Details
ResolverFactory.get()
methodUsage Example
Benefits
Fixes #7463.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.