Skip to content

Commit

Permalink
feat: Add "bun" exports conditions
Browse files Browse the repository at this point in the history
Useful for enhanced debugging when building with bun.
  • Loading branch information
maxmilton committed Jul 1, 2024
1 parent 613d2d2 commit a01a468
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"bun": "./src/index.ts",
"default": "./dist/index.js"
},
"./macro": {
Expand All @@ -21,19 +22,23 @@
},
"./browser": {
"types": "./dist/index.d.ts",
"bun": "./src/browser/index.ts",
"import": "./dist/browser.mjs",
"require": "./dist/browser.js"
},
"./reconcile/keyed": {
"types": "./dist/index.d.ts",
"bun": "./src/reconcile/keyed.ts",
"default": "./dist/reconcile/keyed.js"
},
"./reconcile/non-keyed": {
"types": "./dist/index.d.ts",
"bun": "./src/reconcile/non-keyed.ts",
"default": "./dist/reconcile/non-keyed.js"
},
"./reconcile/reuse-nodes": {
"types": "./dist/index.d.ts",
"bun": "./src/reconcile/reuse-nodes.ts",
"default": "./dist/reconcile/reuse-nodes.js"
},
"./dist/*": "./dist/*",
Expand Down

0 comments on commit a01a468

Please sign in to comment.