Is the project built with rsbuild supported
JoeXin opened this issue · 2 comments
JoeXin commented
Clear and concise description of the problem
I hope supported it
Suggested solution
I hope supported it
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
sxzz commented
You can use it in Rspack/Rsbuild with:
import Components from 'unplugin-vue-components'
const Plugin = Components.rspack
If you encounter any issues, please provide feedback here.
553444MabelMacaulay commented
When troubleshooting, I found here. Currently, the following configuration is OK:
import { defineConfig } from '@rsbuild/core';
import { pluginVue } from '@rsbuild/plugin-vue';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
import Components from 'unplugin-vue-components/rspack';
import AutoImport from 'unplugin-auto-import/rspack';
export default defineConfig({
plugins: [pluginVue()],
tools: {
rspack: {
plugins: [
AutoImport({
resolvers: [ElementPlusResolver({})]
}),
Components({
resolvers: [ElementPlusResolver({})]
})
]
}
}
});