diff options
Diffstat (limited to 'src/resolver/resolver.zig')
| -rw-r--r-- | src/resolver/resolver.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig index 21d09ecbb..0d24d2e39 100644 --- a/src/resolver/resolver.zig +++ b/src/resolver/resolver.zig @@ -561,7 +561,11 @@ pub const Resolver = struct { } pub fn isExternalPattern(r: *ThisResolver, import_path: string) bool { - if (r.opts.mark_bun_builtins_as_external) { + if (r.opts.mark_builtins_as_external) { + if (strings.hasPrefixComptime(import_path, "node:") or strings.hasPrefixComptime(import_path, "bun:")) { + return true; + } + if (bun.JSC.HardcodedModule.Aliases.has(import_path)) { return true; } |
