Skip to content

Commit f5cced5

Browse files
authored
feat: add support for rolldown (#874)
1 parent cb1802d commit f5cced5

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,22 @@ export default {
6565

6666
<br></details>
6767

68+
<details>
69+
<summary>Rolldown</summary><br>
70+
71+
```ts
72+
// rolldown.config.js
73+
import Components from 'unplugin-vue-components/rolldown'
74+
75+
export default {
76+
plugins: [
77+
Components({ /* options */ }),
78+
],
79+
}
80+
```
81+
82+
<br></details>
83+
6884
<details>
6985
<summary>Webpack</summary><br>
7086

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"import": "./dist/rollup.js",
3131
"require": "./dist/rollup.cjs"
3232
},
33+
"./rolldown": {
34+
"import": "./dist/rolldown.js",
35+
"require": "./dist/rolldown.cjs"
36+
},
3337
"./types": {
3438
"import": "./dist/types.js",
3539
"require": "./dist/types.cjs"
@@ -122,6 +126,7 @@
122126
"estree-walker": "^3.0.3",
123127
"minimatch": "^10.0.3",
124128
"pathe": "^2.0.3",
129+
"rolldown": "^1.0.0-beta.32",
125130
"rollup": "^4.46.2",
126131
"tsdown": "^0.13.3",
127132
"typescript": "^5.8.3",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rolldown.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import unplugin from '.'
2+
3+
export default unplugin.rolldown

0 commit comments

Comments
 (0)