Introduce experimental support for on-demand bundling via HTML imports and Bun.serve() (#16395)

This commit is contained in:
Jarred Sumner
2025-01-15 01:00:23 -08:00
committed by GitHub
parent 6cb0d49afb
commit 522f2b91a0
25 changed files with 1735 additions and 769 deletions

View File

@@ -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,