diff options
| author | 2021-10-30 03:11:58 -0700 | |
|---|---|---|
| committer | 2021-10-30 03:11:58 -0700 | |
| commit | 65ea1e464755a165a29680f12f02eb37ccfd8ecf (patch) | |
| tree | 5e1437046fb9e778a4cc27a1d699f80dd031e6a3 /src/runtime.footer.js | |
| parent | f8f85430c08b273d5e551667391992fb3587c228 (diff) | |
| download | bun-65ea1e464755a165a29680f12f02eb37ccfd8ecf.tar.gz bun-65ea1e464755a165a29680f12f02eb37ccfd8ecf.tar.zst bun-65ea1e464755a165a29680f12f02eb37ccfd8ecf.zip | |
[Bun.js] Fix entry point to only call default if it was a CommonJS transformed function
Diffstat (limited to 'src/runtime.footer.js')
| -rw-r--r-- | src/runtime.footer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime.footer.js b/src/runtime.footer.js index 9bea7273d..334efb92a 100644 --- a/src/runtime.footer.js +++ b/src/runtime.footer.js @@ -19,6 +19,9 @@ export var regeneratorRuntime = BUN_RUNTIME.regeneratorRuntime; export var __exportValue = BUN_RUNTIME.__exportValue; export var __exportDefault = BUN_RUNTIME.__exportDefault; export var $$bun_runtime_json_parse = JSON.parse; +export var __internalIsCommonJSNamespace = + BUN_RUNTIME.__internalIsCommonJSNamespace; +globalThis.__internalIsCommonJSNamespace ||= __internalIsCommonJSNamespace; globalThis.require ||= BUN_RUNTIME.__require; globalThis.self ||= globalThis; |
