diff --git a/src/config/resolvers/export-conditions.ts b/src/config/resolvers/export-conditions.ts index 8ea4d0c13f..04a9f1f85d 100644 --- a/src/config/resolvers/export-conditions.ts +++ b/src/config/resolvers/export-conditions.ts @@ -21,6 +21,9 @@ function _resolveExportConditions( } if (opts.node) { + if ("Bun" in globalThis) { + conditions.push("bun"); + } conditions.push("node"); }