File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ import { Counter } from './Counter.vue'
145
145
<Counter :init =' 5' />
146
146
```
147
147
148
- Or you can use [ ` vite-plugin -components` ] ( #work-with-vite-plugin -components ) for auto components registration.
148
+ Or you can use [ ` unplugin-vue -components` ] ( #work-with-unplugin-vue -components ) for auto components registration.
149
149
150
150
## Frontmatter
151
151
@@ -291,7 +291,7 @@ Put your markdown under `./src/pages/xx.md`, then you can access the page via ro
291
291
292
292
### Work with [ unplugin-vue-components] ( https://github.com/antfu/unplugin-vue-components )
293
293
294
- ` vite-plugin -components` allows you to do on-demand components auto-importing without worrying about registration.
294
+ ` unplugin-vue -components` allows you to do on-demand components auto-importing without worrying about registration.
295
295
296
296
``` ts
297
297
import Vue from ' @vitejs/plugin-vue'
@@ -310,7 +310,7 @@ export default {
310
310
extensions: [' vue' , ' md' ],
311
311
312
312
// allow auto import and register components used in markdown
313
- customLoaderMatcher : path => path . endsWith ( ' .md ' ) ,
313
+ include: [ / \. vue $ / , / \. vue \? vue / , / \. md $ / ] ,
314
314
})
315
315
],
316
316
}
You can’t perform that action at this time.
0 commit comments