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.
Environment
unplugin@1.4
Reproduction
When add plugins of unplugin to rspack like
unplugin-auto-import/rspack
, the non-js files like static assets will brokenDescribe 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 therspack(compiler){}
hook whencreateUnplugin()
, but the plugins likeunplugin-auto-import
did not use it, or from theuserOptions
.Additional context
No response
Logs
No response