unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.68k stars 342 forks source link

feat: support rspack #637

Closed loilo closed 1 year ago

loilo commented 1 year ago

Description

This PR adds an rspack export to the package, using unplugin's experimental rspack support. (For the purpose of adding this, it also had to update the unplugin dependency to the latest version.)

Linked Issues

This has not been brought up yet.

Additional context

Rspack just recently added support for vue-loader. As far as I have tested it, this works flawlessly. Having Vue support in Rspack was a good occasion to look for Rspack support in some popular build tools that commonly come with Vue projects.

For reference, here's also a basic proof of concept of a Vue app bundled by Rspack, using this PR's branch for registering components: https://github.com/loilo/rspack-vue-demo