Skip to content

Commit b89217e

Browse files
fix(package.json): add 'bun' package.json 'exports' condition. Load the Node.js build in Bun instead of the browser build (#5754)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 1c6a86d commit b89217e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"require": "./index.d.cts",
1010
"default": "./index.d.ts"
1111
},
12+
"bun": {
13+
"require": "./dist/node/axios.cjs",
14+
"default": "./index.js"
15+
},
1216
"react-native": {
1317
"require": "./dist/browser/axios.cjs",
1418
"default": "./dist/esm/axios.js"
@@ -236,4 +240,4 @@
236240
"@commitlint/config-conventional"
237241
]
238242
}
239-
}
243+
}

0 commit comments

Comments
 (0)