Files
bun.sh/src
Claude Bot 84fa417e8f Fix worker bundling path resolution
The issue was that worker unique keys were using import_record_index
instead of source_index, preventing correct chunk mapping.

Changes:
- js_printer.zig: Use source_index from import record for worker unique keys
- LinkerContext.zig: Validate worker indices against file count (not chunk count)
- Chunk.zig: Use entry_point_chunk_indices mapping for worker path resolution

This allows the bundler to correctly map from source files to their
corresponding worker chunks, just like dynamic imports and SCBs.

Test results:
- bundler_worker_verify.test.ts:  PASS
- bundler_worker_basic.test.ts:  PASS
- bundler_worker_simple.test.ts:  PASS

Workers now correctly resolve to their chunk paths (e.g., ./worker-axd28k5g.js)
instead of incorrectly pointing to the entry file.
2025-10-05 14:29:02 +00:00
..
2025-07-21 13:26:47 -07:00
2025-09-30 05:26:32 -07:00
2025-09-27 00:45:29 -07:00
2025-10-04 02:17:55 -07:00
2025-09-09 20:41:10 -07:00
2025-09-30 05:26:32 -07:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-09-30 05:26:32 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-27 06:39:11 -07:00
2025-09-09 20:41:10 -07:00
2025-09-11 23:29:53 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00