Files
bun.sh/src
Claude Bot cbeda2155e WIP: SourceProvider refactoring - Phases 0-2 partial
Phase 0 (Complete):
- Deleted ZigSourceProvider.cpp/.h and ResolvedSource.zig
- Removed ErrorableResolvedSource structs from headers-handwritten.h

Phase 1 (Complete):
- Created TranspiledSource.zig - minimal POD struct for transpiled code
- Created SpecialModule.zig - for JSValue-based special modules
- Created ModuleResult.zig - tagged union return type
- Created BunSourceProvider.h/.cpp - new C++ SourceProvider
- Added C struct definitions to headers-handwritten.h

Phase 2 (Partial):
- Updated VirtualMachine.zig: refCountedTranspiledSource, fetchWithoutOnLoadPlugins
- Updated jsc.zig imports
- Partially updated ModuleLoader.zig (needs more work)
- Fixed ZigSourceProvider.h includes to use BunSourceProvider.h
- Updated function declarations in headers-handwritten.h

Still TODO:
- Complete ModuleLoader.zig Zig side
- Update all C++ files (ModuleLoader.cpp, JSCommonJSModule, etc.)
- Update generated headers.h
- Fix all build errors
- Test the changes

Build currently broken (expected at this stage)
2025-10-25 06:21:34 +00:00
..
2025-09-09 20:41:10 -07:00
2025-10-16 21:52:22 -04:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-10-24 14:14:15 -07:00
2025-09-09 20:41:10 -07:00
2025-10-23 17:52:13 -07:00
2025-09-11 23:29:53 -07:00
2025-10-20 20:52:35 -07:00
2025-09-09 20:41:10 -07:00