From b89217e3e91de17a3d55e2b8f39ceb0e9d8aeda8 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 11 Nov 2025 10:02:35 -0800 Subject: [PATCH] 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 --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f85fdb4..d1a3396 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,10 @@ "require": "./index.d.cts", "default": "./index.d.ts" }, + "bun": { + "require": "./dist/node/axios.cjs", + "default": "./index.js" + }, "react-native": { "require": "./dist/browser/axios.cjs", "default": "./dist/esm/axios.js" @@ -236,4 +240,4 @@ "@commitlint/config-conventional" ] } -} \ No newline at end of file +}