Skip to content

Commit

Permalink
feat: support rolldown
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 25, 2024
1 parent 9fc961c commit bd423aa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ export default {

<br></details>

<details>
<summary>Rolldown</summary><br>

```ts
// rolldown.config.js
import UnpluginStarter from 'unplugin-starter/rolldown'

export default {
plugins: [UnpluginStarter()],
}
```

<br></details>

<details>
<summary>esbuild</summary><br>

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.js"
},
"./rolldown": {
"require": "./dist/rolldown.cjs",
"import": "./dist/rolldown.js"
},
"./esbuild": {
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.js"
Expand Down
3 changes: 3 additions & 0 deletions src/rolldown.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import unplugin from '.'

export default unplugin.rolldown as typeof unplugin.rolldown

0 comments on commit bd423aa

Please sign in to comment.