mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
use esm module info in source provider
This commit is contained in:
@@ -75,6 +75,11 @@ Ref<SourceProvider> SourceProvider::create(
|
||||
JSC::SourceProviderSourceType sourceType,
|
||||
bool isBuiltin)
|
||||
{
|
||||
if (resolvedSource.module_info != nullptr) {
|
||||
ASSERT(!resolvedSource.isCommonJSModule);
|
||||
sourceType = JSC::SourceProviderSourceType::BunTranspiledModule;
|
||||
}
|
||||
|
||||
auto string = resolvedSource.source_code.toWTFString(BunString::ZeroCopy);
|
||||
auto sourceURLString = resolvedSource.source_url.toWTFString(BunString::ZeroCopy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user