mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Introduce experimental support for on-demand bundling via HTML imports and Bun.serve() (#16395)
This commit is contained in:
@@ -84,6 +84,13 @@ generateJSValueModuleSourceCode(JSC::JSGlobalObject* globalObject,
|
||||
value.getObject());
|
||||
}
|
||||
|
||||
return generateJSValueExportDefaultObjectSourceCode(globalObject, value);
|
||||
}
|
||||
|
||||
JSC::SyntheticSourceProvider::SyntheticSourceGenerator
|
||||
generateJSValueExportDefaultObjectSourceCode(JSC::JSGlobalObject* globalObject,
|
||||
JSC::JSValue value)
|
||||
{
|
||||
if (value.isCell())
|
||||
gcProtectNullTolerant(value.asCell());
|
||||
return [value](JSC::JSGlobalObject* lexicalGlobalObject,
|
||||
|
||||
Reference in New Issue
Block a user