Fix the entry point for Bun.serve

This commit is contained in:
Jarred Sumner
2022-03-26 03:40:54 -07:00
parent 42bda98db7
commit 889ce65974

View File

@@ -196,7 +196,7 @@ pub const ServerEntryPoint = struct {
\\ }}
\\ }}, reportError);
\\}} else if (typeof entryNamespace?.default?.fetch === 'function') {{
\\ Bun.serve(entryNamespace);
\\ Bun.serve(entryNamespace.default);
\\}}
\\
,