diff options
author | 2023-05-12 07:27:25 -0700 | |
---|---|---|
committer | 2023-05-12 07:27:25 -0700 | |
commit | a46d3162ae5743a8af783bd0ffdbd022476859be (patch) | |
tree | ded8837b493334809a8fb9fe08dc036d274f1175 /src | |
parent | 02a8f9962973402a046f241b6de985aa117cf45a (diff) | |
download | bun-a46d3162ae5743a8af783bd0ffdbd022476859be.tar.gz bun-a46d3162ae5743a8af783bd0ffdbd022476859be.tar.zst bun-a46d3162ae5743a8af783bd0ffdbd022476859be.zip |
Fix importstar_ts/ReExportTypeOnlyFileES6
Diffstat (limited to 'src')
-rw-r--r-- | src/bundler/bundle_v2.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 87cb1154f..94c8df6c4 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -2137,6 +2137,10 @@ pub const BundleV2 = struct { new_input_file.source.index = Index.source(graph.input_files.len); new_input_file.source.path = new_task.path; new_input_file.source.key_path = new_input_file.source.path; + + // We need to ensure the loader is set or else importstar_ts/ReExportTypeOnlyFileES6 will fail. + new_input_file.loader = loader; + existing.value_ptr.* = new_input_file.source.index.get(); new_task.source_index = new_input_file.source.index; |