Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit efddd84

Browse files
committed
chore: update package vue-plugin-components to unplugin
1 parent 2024423 commit efddd84

File tree

5 files changed

+73
-10
lines changed

5 files changed

+73
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"ts-node": "^9.0.0",
150150
"typescript": "^4.1.3",
151151
"vite": "^2.4.0",
152-
"vite-plugin-components": "^0.8.3",
152+
"unplugin-vue-components": "^0.14.0",
153153
"vite-plugin-mdx-vue": "^1.1.3",
154154
"vite-plugin-pages": "^0.9.2",
155155
"vite-plugin-vue-layouts": "^0.3.1",

vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
3-
import ComponentsPlugin from 'vite-plugin-components'
3+
import Components from 'unplugin-vue-components/vite'
44
import Pages from 'vite-plugin-pages'
55
import { componentResolver } from '@chakra-ui/vue-auto-import'
66
import path from 'path'
@@ -43,8 +43,8 @@ export default defineConfig({
4343
}
4444
},
4545
}),
46-
ComponentsPlugin({
47-
customComponentResolvers: [componentResolver],
46+
Components({
47+
resolvers: [componentResolver],
4848
}),
4949
],
5050
})

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"remark-slug": "^6.0.0",
4141
"typescript": "^4.1.3",
4242
"vite": "^2.4.0",
43-
"vite-plugin-components": "^0.8.3",
43+
"unplugin-vue-components": "^0.14.0",
4444
"vite-plugin-icons": "^0.3.3",
4545
"vite-plugin-md": "^0.6.0",
4646
"vite-plugin-mdx-vue": "^1.1.3",

website/vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Vue from '@vitejs/plugin-vue'
44
import { extractCritical } from '@emotion/server'
55
import Pages from 'vite-plugin-pages'
66
import Icons from 'vite-plugin-icons'
7-
import ViteComponents from 'vite-plugin-components'
7+
import Components from 'unplugin-vue-components/vite'
88
import VueMdx from 'vite-plugin-mdx-vue'
99
import { componentResolver } from '@chakra-ui/vue-auto-import'
1010
import { MdxComponents } from './src/docs-theme/components/MdxComponents'
@@ -95,15 +95,15 @@ const config: UserConfig = {
9595
Layouts({
9696
layoutsDir: 'src/layouts',
9797
}),
98-
ViteComponents({
98+
Components({
9999
// directories
100100
dirs: ['src/components', 'src/docs-theme'],
101101
// allow auto load markdown components under `dirs` (above)
102102
extensions: ['vue', 'mdx', 'tsx'],
103103
// allow auto import and register components used in markdown
104-
customLoaderMatcher: (path: string) => path.endsWith('.mdx'),
104+
include: [/\.vue$/, /\.vue\?vue/, /\.mdx$/],
105105
// import chakra-ui components
106-
customComponentResolvers: [componentResolver],
106+
resolvers: [componentResolver],
107107
}),
108108
Icons(),
109109
],

yarn.lock

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3552,6 +3552,14 @@
35523552
estree-walker "^2.0.1"
35533553
picomatch "^2.2.2"
35543554

3555+
"@rollup/pluginutils@^4.1.1":
3556+
version "4.1.1"
3557+
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.1.1.tgz#1d4da86dd4eded15656a57d933fda2b9a08d47ec"
3558+
integrity sha512-clDjivHqWGXi7u+0d2r2sBi4Ie6VLEAzWMIkvJLnDmxoOhBYOTfzGbOQBA32THHm11/LiJbd01tJUpJsbshSWQ==
3559+
dependencies:
3560+
estree-walker "^2.0.1"
3561+
picomatch "^2.2.2"
3562+
35553563
"@samverschueren/stream-to-observable@^0.3.0":
35563564
version "0.3.1"
35573565
resolved "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz"
@@ -8714,6 +8722,17 @@ fast-glob@^3.1.1, fast-glob@^3.2.4, fast-glob@^3.2.5:
87148722
micromatch "^4.0.2"
87158723
picomatch "^2.2.1"
87168724

8725+
fast-glob@^3.2.7:
8726+
version "3.2.7"
8727+
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
8728+
integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==
8729+
dependencies:
8730+
"@nodelib/fs.stat" "^2.0.2"
8731+
"@nodelib/fs.walk" "^1.2.3"
8732+
glob-parent "^5.1.2"
8733+
merge2 "^1.3.0"
8734+
micromatch "^4.0.4"
8735+
87178736
[email protected], fast-json-stable-stringify@^2.0.0:
87188737
version "2.1.0"
87198738
resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz"
@@ -9331,7 +9350,7 @@ glob-parent@^3.1.0:
93319350
is-glob "^3.1.0"
93329351
path-dirname "^1.0.0"
93339352

9334-
glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@~5.1.0, glob-parent@~5.1.2:
9353+
glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@^5.1.2, glob-parent@~5.1.0, glob-parent@~5.1.2:
93359354
version "5.1.2"
93369355
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
93379356
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -9549,6 +9568,11 @@ has-flag@^4.0.0:
95499568
resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
95509569
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
95519570

9571+
has-pkg@^0.0.1:
9572+
version "0.0.1"
9573+
resolved "https://registry.yarnpkg.com/has-pkg/-/has-pkg-0.0.1.tgz#f9d9139ed83e2487deae5eb4ac13182a2e903857"
9574+
integrity sha512-UuzsNxcEOdEwRsz4HtaceT7jg71L2gopEq8OMOGKtPLYhHhF4RJZtkcZ4Xn0jmAmBSNhm0xPhrywgZkLu4aMYQ==
9575+
95529576
has-symbols@^1.0.1, has-symbols@^1.0.2:
95539577
version "1.0.2"
95549578
resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz"
@@ -12442,6 +12466,14 @@ micromatch@^4.0.2:
1244212466
braces "^3.0.1"
1244312467
picomatch "^2.0.5"
1244412468

12469+
micromatch@^4.0.4:
12470+
version "4.0.4"
12471+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9"
12472+
integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
12473+
dependencies:
12474+
braces "^3.0.1"
12475+
picomatch "^2.2.3"
12476+
1244512477
miller-rabin@^4.0.0:
1244612478
version "4.0.1"
1244712479
resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
@@ -13665,6 +13697,11 @@ picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1, picomatch@^2.2.2:
1366513697
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz"
1366613698
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
1366713699

13700+
picomatch@^2.2.3:
13701+
version "2.3.0"
13702+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
13703+
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
13704+
1366813705
pify@^2.0.0, pify@^2.2.0, pify@^2.3.0:
1366913706
version "2.3.0"
1367013707
resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz"
@@ -17178,6 +17215,27 @@ universalify@^2.0.0:
1717817215
resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz"
1717917216
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
1718017217

17218+
unplugin-vue-components@^0.14.0:
17219+
version "0.14.13"
17220+
resolved "https://registry.yarnpkg.com/unplugin-vue-components/-/unplugin-vue-components-0.14.13.tgz#b8c7abe76d0f8eb194043aac7b9045eeef173c7e"
17221+
integrity sha512-wfqCSIvlbgFsKQ5+GVwXeuBBdKyn63+TQtjOoitm1sEb/3j2IU/h+T7vKjbHFHgGGGlq6LPW9k0P03uxfXwVnw==
17222+
dependencies:
17223+
"@rollup/pluginutils" "^4.1.1"
17224+
debug "^4.3.2"
17225+
fast-glob "^3.2.7"
17226+
has-pkg "^0.0.1"
17227+
magic-string "^0.25.7"
17228+
minimatch "^3.0.4"
17229+
resolve "^1.20.0"
17230+
unplugin "^0.2.7"
17231+
17232+
unplugin@^0.2.7:
17233+
version "0.2.16"
17234+
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.2.16.tgz#6f34e9f5068ca3ec92a36b016f47b5ad8bb875ca"
17235+
integrity sha512-KkXatHba0baJszSHW+2e8EQU/5Bz7rYwzYXu8wUeq97tE6K3wvub+7OWSuRv04LttvzNLsJ2jXEyR35gofv74Q==
17236+
dependencies:
17237+
webpack-virtual-modules "^0.4.3"
17238+
1718117239
unquote@~1.1.1:
1718217240
version "1.1.1"
1718317241
resolved "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz"
@@ -17783,6 +17841,11 @@ webpack-sources@^2.3.0:
1778317841
source-list-map "^2.0.1"
1778417842
source-map "^0.6.1"
1778517843

17844+
webpack-virtual-modules@^0.4.3:
17845+
version "0.4.3"
17846+
resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.4.3.tgz#cd597c6d51d5a5ecb473eea1983a58fa8a17ded9"
17847+
integrity sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw==
17848+
1778617849
webpack@^4.44.1:
1778717850
version "4.46.0"
1778817851
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.46.0.tgz#bf9b4404ea20a073605e0a011d188d77cb6ad542"

0 commit comments

Comments
 (0)