diff options
author | 2022-09-28 14:37:35 -0700 | |
---|---|---|
committer | 2022-09-28 14:37:35 -0700 | |
commit | b74351e55fcb54451e793879302754de440e3da0 (patch) | |
tree | 6070b9c33c17767f49d931393b9c3000e12d406b /src/runtime.js | |
parent | a1b4dc42cb863eedbbe6735cb29a3d6941e02e04 (diff) | |
download | bun-b74351e55fcb54451e793879302754de440e3da0.tar.gz bun-b74351e55fcb54451e793879302754de440e3da0.tar.zst bun-b74351e55fcb54451e793879302754de440e3da0.zip |
Support a `default` object in CommonJS wrapper
Fixes https://github.com/oven-sh/bun/issues/1284
Related to https://github.com/oven-sh/bun/issues/1285
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js index 10223e712..e1cf9e3df 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -128,7 +128,7 @@ export var __commonJS = (cb, name) => { return mod_exports; }; - requireFunction[cjsRequireSymbol] = true; + requireFunction[cjsRequireSymbol] = 1; return requireFunction; }; |