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

rspack plugin transform includes everything #328

Closed
JasonBoy opened this issue Aug 16, 2023 · 1 comment
Closed

rspack plugin transform includes everything #328

JasonBoy opened this issue Aug 16, 2023 · 1 comment

Comments

@JasonBoy
Copy link

Environment

[email protected]

Reproduction

When add plugins of unplugin to rspack like unplugin-auto-import/rspack, the non-js files like static assets will broken

Describe the bug

like the fonts below which has different size before and after bundle, which also not recognized in browser,
looking at the code in https://github.com/unjs/unplugin/blob/main/src/rspack/index.ts#L44 , it includes everything in the transform, also not accept outside options for include,
maybe this is because the rspack is still in experimental state, is there any est for rspack plugin updates? or any workarounds? I found the unplugin has the rspack(compiler){} hook when createUnplugin(), but the plugins like unplugin-auto-import did not use it, or from the userOptions.

image

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant