diff options
author | 2023-07-23 03:57:30 -0700 | |
---|---|---|
committer | 2023-07-23 03:58:10 -0700 | |
commit | c76516fa38ccd537be4840cdc430ffb18349b0f9 (patch) | |
tree | b0c0a37ff5421d96b2107ff222602d360ebf4e5c /src | |
parent | ce77266cc5884000643befcaac7f8334c0b25495 (diff) | |
download | bun-c76516fa38ccd537be4840cdc430ffb18349b0f9.tar.gz bun-c76516fa38ccd537be4840cdc430ffb18349b0f9.tar.zst bun-c76516fa38ccd537be4840cdc430ffb18349b0f9.zip |
Fixes #3764
Diffstat (limited to 'src')
-rw-r--r-- | src/bundler/bundle_v2.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index b70bac229..bb6ac6d8a 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -398,6 +398,12 @@ pub const BundleV2 = struct { import_record.source_index = Index.invalid; break; } + + // Handle redirects to a builtin or external module + // https://github.com/oven-sh/bun/issues/3764 + if (!other_source.isValid()) { + break; + } } v.visit(import_record.source_index, check_dynamic_imports and import_record.kind == .dynamic, check_dynamic_imports); |