aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/index-with-refresh.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/index-with-refresh.ts')
-rw-r--r--src/runtime/index-with-refresh.ts10
1 files changed, 8 insertions, 2 deletions
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/";
+ },
+};