Files
bun.sh/test_worker_simple.js
Claude Bot da388b6561 Implement unique_key_prefix approach for worker bundling
- Add worker kind to OutputPiece.Query.Kind enum
- Update all switch statements to handle worker output pieces
- Add unique_key_prefix field to js_printer.Options
- Pass unique_key_prefix from LinkerContext to all js_printer Options constructions
- Update js_printer to generate unique keys for worker imports instead of direct paths
- Fix unreachable panic in breakOutputIntoPieces validation
- Worker bundling now creates separate chunks without crashing
- Path resolution partially working - generates unique keys that get processed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 06:06:13 +00:00

2 lines
72 B
JavaScript

const worker = new Worker('./worker.js');
console.log('Created worker');