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

support resolve.plugin or builtin support ModuleScopePlugin #3548

Closed
9aoy opened this issue Jun 15, 2023 · 2 comments
Closed

support resolve.plugin or builtin support ModuleScopePlugin #3548

9aoy opened this issue Jun 15, 2023 · 2 comments
Labels
feat New feature or request pending triage The issue/PR is currently untouched. team The issue/pr is created by the member of Rspack.

Comments

@9aoy
Copy link
Collaborator

9aoy commented Jun 15, 2023

What problem does this feature solve?

I want to use ModuleScopePlugin to restrict importing paths. In webpack, it's a resolve plugin. but in Rspack, we not support resolve plugin.
Is there any way to implement this function? Is it necessary to make it builtin?

https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/ModuleScopePlugin.js

What does the proposed API of configuration look like?

none

@9aoy 9aoy added feat New feature or request pending triage The issue/PR is currently untouched. labels Jun 15, 2023
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jun 15, 2023
@Wyatex
Copy link

Wyatex commented Jul 4, 2023

I really hope to implement this commonly used ability, because without it, I can't use unocss and unplugin-icons that I usually use.

@hardfist
Copy link
Contributor

close due to duplicate of #3408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request pending triage The issue/PR is currently untouched. team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

No branches or pull requests

3 participants