-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Add include and exclude option #2
Conversation
Can you add some test cases? |
I don't have much experience on that. Can you provide some examples? |
The |
I was trying to fit test from @rspack/plugin-react-refresh, however Jest would complain about timeout and |
You can see this doc. And the code is here. You can try to add some debug code in When this function is called, the compiler will build again and then the module content will be changed by this loader. Then |
I've add some tests. Ping me if you find something wrong. |
LGTM, thanks for your contribution |
This PR aims to add the
include
andexclude
option like the@rspack/plugin-react-refresh
.These options are helpful when works with
svgr
andmdx
, or prevent runtime injection to other packages sharing the same workspace.