-
Notifications
You must be signed in to change notification settings - Fork 4.9k
esm bytecode #26402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
esm bytecode #26402
Changes from 67 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
5fd6735
[autofix.ci] apply automated fixes
autofix-ci[bot] 1bd8ad4
use esm module info in source provider
alii 6c7ef4d
record top level decl in the parser + impl the cached transpiled module
alii 3695007
revert files broken from a merge (whoops)
alii 2698887
fix: add debug logging for module_info deserialization failures
alii 7280a9a
move @import statements to bottom of file per project conventions
alii 314b9d4
fix: set parse_error on module_info finalization failure
alii a8b8610
fix: derive VarKind from statement kind in module_info recording
alii 8fd56a4
fix: prevent ArrayList leak in serializeModuleInfo
alii 22855ec
fix UB: use gpa.destroy(res) instead of res.deinit() in errdefer
alii 9db3dbc
move inline @import of DiffFormatter to bottom of file
alii ff5fa80
use info.destroy() to honor the stored allocator in ModuleInfo
alii 687cfc8
free ModuleInfo after serialization to avoid leak
alii a8d47d5
fix a build err
alii f6c5700
temp
alii 9630397
Merge branch 'main' of github.com:oven-sh/bun into ali/esm-bytecode
alii 56ea8da
[autofix.ci] apply automated fixes
autofix-ci[bot] 26e4b98
missing module_info plumbing
alii b515c2b
Fix potential OOB access in addRequestedModuleHostDefined
alii 86479e3
Handle OOM errors in module_info fix-up instead of silently ignoring …
alii 1e15c5d
Use per-chunk public_path when resolving module_info cross-chunk imports
alii 210ea88
Skip unused/type-only imports in postProcessJSChunk module info
alii 716ed5a
Revert "Skip unused/type-only imports in postProcessJSChunk module info"
alii 206c24b
plumbing
alii f755caf
plumbing
alii fc9733f
Merge branch 'ali/esm-bytecode' of github.com:oven-sh/bun into ali/es…
alii 6f137a2
[autofix.ci] apply automated fixes
autofix-ci[bot] 18093e4
use bun.StringHashMap
alii dfb90a5
sort star exports deterministically & remove duplicate includes
alii 487787c
address some feedback in js_printer.zig
alii 162f80e
tests + type re-export tests, some fixes
alii 7189f22
[autofix.ci] apply automated fixes
autofix-ci[bot] ec029b1
matrix test for permuations of splitting, dynamic imports and bytecode
alii 9714dee
fix import meta
alii e0a3177
use ArrayListUnmanaged
alii c7ec692
address jarred feedback
alii b7b36f5
Merge branch 'main' of github.com:oven-sh/bun into ali/esm-bytecode
alii 4e25e35
unify the BadModuleInfo error handling
alii 69e9fed
fix a more serious leak (fixes require-cache.test.ts)
alii ad5fa18
make this much easier to read
alii f8854f8
remove {todo: "true"} import attribute
alii 567cca9
fix module_info leak on printWithSourceMap error
alii 68e0a42
address review comments in type-export.test.ts
alii 94f3eb1
trigger
alii 79c699b
Merge branch 'main' into ali/esm-bytecode
alii 7991519
Merge branch 'main' of github.com:oven-sh/bun into ali/esm-bytecode
alii a7c3b39
Merge branch 'ali/esm-bytecode' of github.com:oven-sh/bun into ali/es…
alii 91324d8
update the windows friendly build-jsc script
alii f5e4c87
windows: `B:/~BUN` → `B:/BUN`
alii 55691d1
try prefix with "base_public_path_with_default_suffix"
alii a6d95df
Revert "windows: `B:/~BUN` → `B:/BUN`"
alii 6eac109
Revert "try prefix with "base_public_path_with_default_suffix""
alii cc7a762
Reapply "try prefix with "base_public_path_with_default_suffix""
alii d042f19
testing
alii 0fc5b50
Merge branch 'main' of github.com:oven-sh/bun into ali/esm-bytecode
alii 72503b7
[autofix.ci] apply automated fixes
autofix-ci[bot] 0197f83
revert build-jsc.ts
alii 29c02b3
missing .md
alii a4e8c04
trace
alii d4d8e11
standalone bytecode cache misses on Windows - origin URL mismatch bet…
alii 27cdb83
Remove verbose bytecode cache debug logs
0995a0e
semi address review comments
alii 5671e7b
Update test/js/bun/typescript/type-export.test.ts
alii 1815083
only enable esm module info in standalone module graph for now
alii 341e1ee
skip `run` mode for type-export.test.ts since we disabled module info…
alii 93b8a2d
dont break the assumption that cjs is the default format under --byte…
alii b5d64cf
use --format=esm
alii a1f27a7
window compile target with --windows-x flag should fail on non window…
alii 48adee7
Revert "window compile target with --windows-x flag should fail on no…
alii 712b637
Reapply "window compile target with --windows-x flag should fail on n…
alii 519d9dc
store the esm_record_hash (claude feedback 1)
alii 1c0d6eb
skip this check
alii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.