diff options
-rw-r--r-- | src/bundler/entry_points.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bundler/entry_points.zig b/src/bundler/entry_points.zig index 4eb973b01..b8414a9a5 100644 --- a/src/bundler/entry_points.zig +++ b/src/bundler/entry_points.zig @@ -191,7 +191,7 @@ pub const ServerEntryPoint = struct { \\var entryNamespace = start; \\var cjs = start?.default; \\if (cjs && typeof cjs === 'function' && cjsSymbol in cjs) {{ - \\ // if you module.exports = (class {}), don't call it + \\ // if you module.exports = (class {{}}), don't call it \\ entryNamespace = ("prototype" in cjs) ? cjs : cjs(); \\}} \\if (typeof entryNamespace?.then === 'function') {{ @@ -234,7 +234,7 @@ pub const ServerEntryPoint = struct { \\var entryNamespace = start; \\var cjs = start?.default; \\if (cjs && typeof cjs === 'function' && cjsSymbol in cjs) {{ - \\ // if you module.exports = (class {}), don't call it + \\ // if you module.exports = (class {{}}), don't call it \\ entryNamespace = ("prototype" in cjs) ? cjs : cjs(); \\}} \\if (typeof entryNamespace?.then === 'function') {{ |