mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
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>
This commit is contained in:
+5
-1
@@ -9,6 +9,10 @@
|
|||||||
"require": "./index.d.cts",
|
"require": "./index.d.cts",
|
||||||
"default": "./index.d.ts"
|
"default": "./index.d.ts"
|
||||||
},
|
},
|
||||||
|
"bun": {
|
||||||
|
"require": "./dist/node/axios.cjs",
|
||||||
|
"default": "./index.js"
|
||||||
|
},
|
||||||
"react-native": {
|
"react-native": {
|
||||||
"require": "./dist/browser/axios.cjs",
|
"require": "./dist/browser/axios.cjs",
|
||||||
"default": "./dist/esm/axios.js"
|
"default": "./dist/esm/axios.js"
|
||||||
@@ -236,4 +240,4 @@
|
|||||||
"@commitlint/config-conventional"
|
"@commitlint/config-conventional"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user