Skip to content

Commit

Permalink
feat: add rspack & rolldown export entry
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 29, 2024
1 parent aec7530 commit 96bdf1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.js"
},
"./rspack": {
"require": "./dist/rspack.cjs",
"import": "./dist/rspack.js"
},
"./rolldown": {
"require": "./dist/rolldown.cjs",
"import": "./dist/rolldown.js"
},
"./nuxt": {
"require": "./dist/nuxt.cjs",
"import": "./dist/nuxt.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
3 changes: 3 additions & 0 deletions src/rspack.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import unplugin from '.'

export default unplugin.rspack as typeof unplugin.rspack

0 comments on commit 96bdf1c

Please sign in to comment.