Skip to content

Commit 4678d95

Browse files
authored
Merge branch 'main' into feat/antdv-custom-prefix
2 parents a433870 + 534fbfa commit 4678d95

40 files changed

+3733
-3437
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
strategy:
3838
matrix:
39-
node: [14.x, 16.x]
39+
node: [16.x, 18.x]
4040
os: [ubuntu-latest, windows-latest, macos-latest]
4141
fail-fast: false
4242

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ On-demand components auto importing for Vue.
88

99
- 💚 Supports both Vue 2 and Vue 3 out-of-the-box.
1010
- ✨ Supports both components and directives.
11-
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
11+
- ⚡️ Supports Vite, Webpack, Rspack, Vue CLI, Rollup, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
1212
- 🏝 Tree-shakable, only registers the components you use.
1313
- 🪐 Folder names as namespaces.
1414
- 🦾 Full TypeScript support.
@@ -81,6 +81,21 @@ module.exports = {
8181

8282
<br></details>
8383

84+
<details>
85+
<summary>Rspack</summary><br>
86+
87+
```ts
88+
// rspack.config.js
89+
module.exports = {
90+
/* ... */
91+
plugins: [
92+
require('unplugin-vue-components/rspack')({ /* options */ }),
93+
],
94+
}
95+
```
96+
97+
<br></details>
98+
8499
<details>
85100
<summary>Nuxt</summary><br>
86101

@@ -203,7 +218,7 @@ Supported Resolvers:
203218
- [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
204219
- [VEUI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/veui.ts)
205220
- [View UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/view-ui.ts)
206-
- [Vuetify](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vuetify.ts)
221+
- [Vuetify](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vuetify.ts) &mdash; Prefer first-party plugins when possible: [v3 + vite](https://www.npmjs.com/package/vite-plugin-vuetify), [v3 + webpack](https://www.npmjs.com/package/webpack-plugin-vuetify), [v2 + webpack](https://npmjs.com/package/vuetify-loader)
207222
- [VueUse Components](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vueuse.ts)
208223
- [VueUse Directives](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vueuse-directive.ts)
209224
- [Dev UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/devui.ts)

examples/vite-vue2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"@vitejs/plugin-vue2": "^2.2.0",
1212
"cross-env": "^7.0.3",
1313
"unplugin-vue-components": "workspace:*",
14-
"vite": "^4.1.4"
14+
"vite": "^4.4.4"
1515
}
1616
}

examples/vite-vue3/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
"build": "cross-env DEBUG=unplugin-vue-components:* vite build"
88
},
99
"dependencies": {
10-
"vant": "^4.1.0"
10+
"vant": "^4.6.2"
1111
},
1212
"devDependencies": {
13-
"@iconify/json": "^2.2.31",
14-
"@vitejs/plugin-vue": "^4.0.0",
15-
"@vue/compiler-sfc": "^3.2.47",
13+
"@iconify/json": "^2.2.92",
14+
"@vitejs/plugin-vue": "^4.2.3",
15+
"@vue/compiler-sfc": "^3.3.4",
1616
"cross-env": "^7.0.3",
1717
"has-pkg": "^0.0.1",
18-
"typescript": "^4.9.5",
19-
"unplugin-icons": "^0.15.3",
18+
"typescript": "^5.1.6",
19+
"unplugin-icons": "^0.16.5",
2020
"unplugin-vue-components": "workspace:*",
21-
"vite": "^4.1.4",
22-
"vite-plugin-inspect": "^0.7.15",
23-
"vite-plugin-vue-markdown": "^0.22.4",
24-
"vue-router": "^4.1.6"
21+
"vite": "^4.4.4",
22+
"vite-plugin-inspect": "^0.7.33",
23+
"vite-plugin-vue-markdown": "^0.23.5",
24+
"vue-router": "^4.2.4"
2525
}
2626
}

examples/vite-vue3/src/components/ComponentA.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang='ts'>
2-
const props = defineProps({
2+
defineProps({
33
msg: String,
44
})
55
</script>

examples/vite-vue3/src/components/ComponentB.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup='props' lang='ts'>
22
import { defineProps } from 'vue'
33
4-
const props = defineProps({
4+
defineProps({
55
msg: String,
66
})
77
</script>

examples/vite-vue3/src/components/component-c.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang='ts'>
22
import { defineProps } from 'vue'
33
4-
const props = defineProps({
4+
defineProps({
55
msg: String,
66
})
77
</script>

examples/vue-cli-vue3/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11-
"core-js": "^3.29.0",
11+
"core-js": "^3.31.1",
1212
"vue": "^3.2.45"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.21.0",
15+
"@babel/core": "^7.22.9",
1616
"@vue/cli-plugin-babel": "~5.0.8",
1717
"@vue/cli-service": "~5.0.8",
1818
"unplugin-vue-components": "workspace:*"

examples/vue-cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
},
99
"dependencies": {
1010
"@vue/composition-api": "^1.7.1",
11-
"core-js": "^3.29.0",
11+
"core-js": "^3.31.1",
1212
"vue": "^3.2.45"
1313
},
1414
"devDependencies": {
1515
"@vue/cli-plugin-babel": "^5.0.8",
1616
"@vue/cli-plugin-typescript": "^5.0.8",
1717
"@vue/cli-service": "^5.0.8",
18-
"typescript": "^4.9.5",
19-
"unplugin-icons": "^0.15.3",
18+
"typescript": "^5.1.6",
19+
"unplugin-icons": "^0.16.5",
2020
"unplugin-vue-components": "workspace:*",
21-
"unplugin-vue2-script-setup": "^0.11.3"
21+
"unplugin-vue2-script-setup": "^0.11.4"
2222
}
2323
}

package.json

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unplugin-vue-components",
3-
"version": "0.24.1",
4-
"packageManager": "pnpm@7.29.0",
3+
"version": "0.25.1",
4+
"packageManager": "pnpm@8.6.8",
55
"description": "Components auto importing for Vue",
66
"author": "antfu <anthonyfu117@hotmail.com>",
77
"license": "MIT",
@@ -48,6 +48,11 @@
4848
"require": "./dist/webpack.js",
4949
"import": "./dist/webpack.mjs"
5050
},
51+
"./rspack": {
52+
"types": "./dist/rspack.d.ts",
53+
"require": "./dist/rspack.js",
54+
"import": "./dist/rspack.mjs"
55+
},
5156
"./esbuild": {
5257
"types": "./dist/esbuild.d.ts",
5358
"require": "./dist/esbuild.js",
@@ -96,39 +101,39 @@
96101
}
97102
},
98103
"dependencies": {
99-
"@antfu/utils": "^0.7.2",
104+
"@antfu/utils": "^0.7.5",
100105
"@rollup/pluginutils": "^5.0.2",
101106
"chokidar": "^3.5.3",
102107
"debug": "^4.3.4",
103-
"fast-glob": "^3.2.12",
108+
"fast-glob": "^3.3.0",
104109
"local-pkg": "^0.4.3",
105-
"magic-string": "^0.30.0",
106-
"minimatch": "^7.4.2",
107-
"resolve": "^1.22.1",
108-
"unplugin": "^1.1.0"
110+
"magic-string": "^0.30.1",
111+
"minimatch": "^9.0.3",
112+
"resolve": "^1.22.2",
113+
"unplugin": "^1.4.0"
109114
},
110115
"devDependencies": {
111-
"@antfu/eslint-config": "^0.36.0",
112-
"@babel/parser": "^7.21.2",
113-
"@babel/types": "^7.21.2",
114-
"@nuxt/kit": "^3.2.3",
115-
"@types/debug": "^4.1.7",
116+
"@antfu/eslint-config": "^0.39.8",
117+
"@babel/parser": "^7.22.7",
118+
"@babel/types": "^7.22.5",
119+
"@nuxt/kit": "^3.6.3",
120+
"@types/debug": "^4.1.8",
116121
"@types/minimatch": "^5.1.2",
117-
"@types/node": "^18.14.6",
122+
"@types/node": "^20.4.2",
118123
"@types/resolve": "^1.20.2",
119-
"@typescript-eslint/eslint-plugin": "^5.54.1",
120-
"bumpp": "^9.0.0",
121-
"compare-versions": "^5.0.3",
122-
"element-plus": "^2.2.34",
123-
"eslint": "^8.35.0",
124-
"esno": "^0.16.3",
124+
"@typescript-eslint/eslint-plugin": "^6.1.0",
125+
"bumpp": "^9.1.1",
126+
"compare-versions": "^6.0.0",
127+
"element-plus": "^2.3.8",
128+
"eslint": "^8.45.0",
129+
"esno": "^0.17.0",
125130
"estree-walker": "^3.0.3",
126-
"pathe": "^1.1.0",
127-
"rollup": "^3.18.0",
128-
"tsup": "^6.6.3",
129-
"typescript": "^4.9.5",
130-
"vite": "^4.1.4",
131-
"vitest": "^0.29.2",
131+
"pathe": "^1.1.1",
132+
"rollup": "^3.26.3",
133+
"tsup": "^7.1.0",
134+
"typescript": "^5.1.6",
135+
"vite": "^4.4.4",
136+
"vitest": "^0.33.0",
132137
"vue": "3.2.45"
133138
}
134139
}

0 commit comments

Comments
 (0)