-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix: improved support for cjs and cts modules #26558
Merged
dsherret
merged 56 commits into
denoland:main
from
dsherret:refactor_handle_program_more
Nov 1, 2024
Merged
Changes from 42 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
c11079d
refactor: prefer parsing as `Program` over `Module`
dsherret 904c316
more updates
dsherret 4335aa0
Starting on this, but going to revert.
dsherret 29876a5
Merge branch 'main' into refactor_handle_program_more
dsherret 7410544
compiling
dsherret 34b1a88
working
dsherret 873da6b
Start on translating code
dsherret 342c81c
perf: pass transpiled modules to deno_core as a string
dsherret 3cd7c94
update
dsherret eedcdca
Merge branch 'main' into perf_pass_transpiled_modules_to_deno_core_as…
dsherret d1d7b36
Merge branch 'main' into refactor_handle_program_more
dsherret 8540344
update
dsherret 3a83933
Merge branch 'perf_pass_transpiled_modules_to_deno_core_as_string' in…
dsherret af06589
better cts support
dsherret 21b5d06
Merge branch 'main' into refactor_handle_program_more
dsherret eb9f9ff
fix(check): expose more globals from @types/node
dsherret eaa4ea7
Merge branch 'fix_expose_types_node_globals' into refactor_handle_pro…
dsherret 941eefd
Merge branch 'main' into refactor_handle_program_more
dsherret 9e7ad6f
support in deno compile
dsherret 39e928f
working test
dsherret bd824a6
updates to pass around the module kind
dsherret 01c773f
Create PackageJsonResolver
dsherret 63acd1a
Use fs more
dsherret 84f1f70
better cjs/esm tracking
dsherret ebaa01f
compiling large refactor
dsherret cf9fd71
fix bug
dsherret e0b0fb5
passing tests
dsherret c8361e8
Start working on removing `NodeResolution`
dsherret e513f6a
commit and going to revert to simplify
dsherret e7e1299
More passing tests
dsherret fd26e78
going to revert
dsherret d23a91a
Add LspCjsTracker
dsherret d56c766
remove resolving media type in lsp based on node resolution
dsherret 9e7d896
fix json imports
dsherret 4d3097a
Remove url_to_node_resolution
dsherret 157dfd5
update test
dsherret eb2a381
Merge branch 'main' into refactor_handle_program_more
dsherret 41b7742
lint
dsherret 5582eda
bump deno_ast
dsherret fc4ff68
Fix node compat tests
dsherret 220e782
do not require --allow-read if requiring modules found in the module …
dsherret 9aaa4d7
more tests
dsherret 1e28b03
Merge branch 'main' into refactor_handle_program_more
dsherret 5049c3c
fix small issues and add jsx tests
dsherret ecde7bd
Merge branch 'main' into refactor_handle_program_more
dsherret adcf6d3
Bump ci
dsherret 2636535
mark main CJS module
bartlomieju d47411b
add a test for main cjs module
bartlomieju 0693427
Merge branch 'main' into refactor_handle_program_more
dsherret 66c139d
Update
dsherret b2500dd
Support TsImportEquals
dsherret 5e86e00
Merge branch 'refactor_handle_program_more' of https://github.com/dsh…
dsherret ef85fc3
Merge branch 'main' into refactor_handle_program_more
dsherret c21c283
proper support for ts import equals and export equals
dsherret 0411a73
Add some more import equals tests
dsherret a471da0
Merge branch 'main' into refactor_handle_program_more
dsherret 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, this PR is hard to split up into multiple smaller ones. There's so much stuff that's intertwined.
The main themes are using "program" more and determining if a
js
,jsx
,ts
, ortsx
file is cjs or esm always only happens after loading it now.