8000 docs: update vue-cli/webpack/rspack require usage (#843) · unplugin/unplugin-vue-components@7d574be · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d574be

Browse files
authored
docs: update vue-cli/webpack/rspack require usage (#843)
1 parent d542b30 commit 7d574be

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
@@ -73,7 +73,7 @@ export default {
7373
module.exports = {
7474
/* ... */
7575
plugins: [
76-
require('unplugin-vue-components/webpack').default({ /* options */ }),
76+
require('unplugin-vue-components/webpack')({ /* options */ }),
7777
],
7878
}
7979
```
@@ -88,7 +88,7 @@ module.exports = {
8888
module.exports = {
8989
/* ... */
9090
plugins: [
91-
require('unplugin-vue-components/rspack').default({ /* options */ }),
91+
require('unplugin-vue-components/rspack')({ /* options */ }),
9292
],
9393
}
9494
```
@@ -110,7 +110,7 @@ You might not need this plugin for Nuxt. Use [`@nuxt/components`](https://github
110110
module.exports = {
111111
/* ... */
112112
plugins: [
113-
require('unplugin-vue-components/webpack').default({ /* options */ }),
113+
require('unplugin-vue-components/webpack')({ /* options */ }),
114114
],
115115
}
116116
```

0 commit comments

Comments
 (0)
0