unjs / unplugin

Unified plugin system for Vite, Rollup, Webpack, esbuild, Rolldown, and more
https://unplugin.unjs.io
MIT License
2.9k stars 104 forks source link

[Feature Request] support resolveId hook for rspack #311

Open underfin opened 1 year ago

underfin commented 1 year ago

Environment

-

Reproduction

-

Describe the bug

The latest rspack version already support normalModuleResolver resolveSchema hook, maybe it can be used to intercept it to implement resolveId hook.

Additional context

No response

Logs

No response

antfu commented 1 year ago

Do you want to implement that? PR welcome :)

Nicolab commented 4 months ago

Hello,

For information, unplugin-icons seems not to work because of the resolveId() which is used to resolve the import path ~icons/.