This commit is contained in:
dave caruso
2024-12-10 14:39:30 -08:00
parent ac75182fcd
commit f47277988f

View File

@@ -2575,7 +2575,7 @@ pub const ModuleLoader = struct {
.is_commonjs_module = file.module_format == .cjs,
};
}
} else if (is_allowed_to_use_internal_testing_apis) {
} else if (is_allowed_to_use_internal_testing_apis or Environment.isDebug) {
if (internal_modules.getWithEql(specifier, bun.String.eqlComptime)) |tag| {
return jsSyntheticModule(tag, specifier);
}