Skip to content

Commit 851fbff

Browse files
authored
docs: update package name unplugin-vue-components (#35)
1 parent 22208f5 commit 851fbff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ import { Counter } from './Counter.vue'
145145
<Counter :init='5'/>
146146
```
147147

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.
149149

150150
## Frontmatter
151151

@@ -291,7 +291,7 @@ Put your markdown under `./src/pages/xx.md`, then you can access the page via ro
291291

292292
### Work with [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
293293

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.
295295

296296
```ts
297297
import Vue from '@vitejs/plugin-vue'
@@ -310,7 +310,7 @@ export default {
310310
extensions: ['vue', 'md'],
311311

312312
// allow auto import and register components used in markdown
313-
customLoaderMatcher: path => path.endsWith('.md'),
313+
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
314314
})
315315
],
316316
}

0 commit comments

Comments
 (0)