Skip to content

Commit

Permalink
feat: add esbuild export (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Jul 4, 2022
1 parent dd90f50 commit 0a6fbfd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,18 @@ module.exports = {
```

<br></details>

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

```ts
// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-starter/esbuild'

build({
plugins: [Starter()],
})
```

<br></details>
3 changes: 3 additions & 0 deletions src/esbuild.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import unplugin from '.'

export default unplugin.esbuild

0 comments on commit 0a6fbfd

Please sign in to comment.