rspack-plugin-vue-router
v0.1.0
Published
File-system vue routing for rspack by unplugin-vue-router
Downloads
13
Readme
rspack-plugin-vue-router
File-system vue routing for rspack by unplugin-vue-router.
unplugin-vue-router may have some issues to work with rspack, this caused by the unplugin rspack virtual module bug: here
This issue shoud be fixed in the next version of unplugin, and before that, this pkg provide a solution for using unplugin-vue-router in your application.
Installation
pnpm add rspack-plugin-vue-router -D
Usage
// rspack.config.ts
import RspackVueRouterPlugin from 'rspack-plugin-vue-router'
export default {
plugins: [
new RspackVueRouterPlugin({
routesFolder: './app/pages',
}),
],
}
Options
options.routesFolder
- Type:
string
- Default:
./src/pages