mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[Bun.js] Resolve dynamic imports lazily
This commit is contained in:
@@ -258,6 +258,11 @@ pub const Linker = struct {
|
||||
// don't link bun
|
||||
continue;
|
||||
}
|
||||
|
||||
// Resolve dynamic imports lazily for perf
|
||||
if (import_record.kind == .dynamic) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (linker.resolver.resolve(source_dir, import_record.path.text, import_record.kind)) |*_resolved_import| {
|
||||
|
||||
Reference in New Issue
Block a user