From ce742f665aba7ae9cc5ea1838ea45b4342021a2e Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 19 Mar 2022 00:46:24 -0700 Subject: generate separate interop code for bun --- src/runtime/index-with-refresh.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/runtime/index-with-refresh.ts') diff --git a/src/runtime/index-with-refresh.ts b/src/runtime/index-with-refresh.ts index 1aceecc67..d0a0b12ec 100644 --- a/src/runtime/index-with-refresh.ts +++ b/src/runtime/index-with-refresh.ts @@ -1,10 +1,16 @@ import { __injectFastRefresh } from "./hmr"; export * from "./hmr"; export * from "./errors"; -export * from "../runtime.js"; -export { default as regeneratorRuntime } from "./regenerator"; +export * from "./index-without-hmr"; import * as __FastRefreshRuntime from "../react-refresh"; if (typeof window !== "undefined") { __injectFastRefresh(__FastRefreshRuntime); } export { __FastRefreshRuntime }; + +globalThis.process ||= { + env: {}, + cwd() { + return "/bun-fake-dir/"; + }, +}; -- cgit v1.2.3