From 63a822f47839635428dc76862a12eb5ebea46139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B8=B8=E5=90=9B?= Date: Wed, 28 May 2025 19:36:23 +0800 Subject: [PATCH] docs: update vue-cli/webpack/rspack require usage --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cdf4dfe4..a2cce544 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ export default { module.exports = { /* ... */ plugins: [ - require('unplugin-vue-components/webpack').default({ /* options */ }), + require('unplugin-vue-components/webpack')({ /* options */ }), ], } ``` @@ -88,7 +88,7 @@ module.exports = { module.exports = { /* ... */ plugins: [ - require('unplugin-vue-components/rspack').default({ /* options */ }), + require('unplugin-vue-components/rspack')({ /* options */ }), ], } ``` @@ -110,7 +110,7 @@ You might not need this plugin for Nuxt. Use [`@nuxt/components`](https://github module.exports = { /* ... */ plugins: [ - require('unplugin-vue-components/webpack').default({ /* options */ }), + require('unplugin-vue-components/webpack')({ /* options */ }), ], } ```