diff options
author | 2022-03-19 00:46:24 -0700 | |
---|---|---|
committer | 2022-03-19 00:46:24 -0700 | |
commit | ce742f665aba7ae9cc5ea1838ea45b4342021a2e (patch) | |
tree | 743e84f23cf03c01ed8c63a540f7c21cbeb76827 /src/runtime/index-with-refresh.ts | |
parent | 521ccba387e171835c0592f070112930fe2dd55e (diff) | |
download | bun-ce742f665aba7ae9cc5ea1838ea45b4342021a2e.tar.gz bun-ce742f665aba7ae9cc5ea1838ea45b4342021a2e.tar.zst bun-ce742f665aba7ae9cc5ea1838ea45b4342021a2e.zip |
generate separate interop code for bun
Diffstat (limited to 'src/runtime/index-with-refresh.ts')
-rw-r--r-- | src/runtime/index-with-refresh.ts | 10 |
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/"; + }, +}; |