web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
9.37k stars 543 forks source link

Support ResolvePlugin #3408

Closed sxzz closed 2 months ago

sxzz commented 1 year ago

What problem does this feature solve?

Be consistent with Webpack behavior

Example: https://github.com/unjs/unplugin/blob/bb2444b1f3140968723584dedfe8d5fbec1ee2fb/src/webpack/index.ts

What does the proposed API of configuration look like?

See https://webpack.js.org/configuration/resolve/#resolveplugins

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

hardfist commented 1 year ago

cc @Boshen, unplugin need resolvePlugin to make rspack support work

hardfist commented 11 months ago

resolve plugin seems has large cost than resolve hooks, we may support resolve first and see whether we could provide better unplugin support. cc @h-a-n-a @ahabhgk

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

sxzz commented 9 months ago

bump

JounQin commented 8 months ago

So what's current status of this feature now? Is it an accepted feature to be added into rspack core?

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

sxzz commented 6 months ago

bump

hardfist commented 2 months ago

@sxzz we already support resolve hook and make resolveId works in unplugin now, can you help take a look https://github.com/unjs/unplugin/pull/388