-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rewrite relative import extensions with flag #59767
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
RyanCavanaugh
merged 30 commits into
microsoft:main
from
andrewbranch:rewrite-extensions
Sep 27, 2024
Merged
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2439577
Rewrite relative import extensions with flag
andrewbranch 2b06e62
Add error for unsafe CJS-style resolution
andrewbranch a398ad1
Update baselines
andrewbranch 921f9ae
Add error for using .ts in non-rewritable paths
andrewbranch ac8a2fa
Silence error for referencing TS file in node_modules
andrewbranch 6e62350
Fix CJS error message interpolation
andrewbranch c8ba95d
Update baseline
andrewbranch fce0a2d
Use sourceFileMayBeEmitted
andrewbranch 1558c7f
Merge branch 'main' into rewrite-extensions
andrewbranch 0d95ce2
Add error for referencing referenced project input file
andrewbranch b88dddc
Add test with different but parallel rootDir/outDir
andrewbranch 4867001
Test all import/export declaration forms for emit
andrewbranch 62dab48
Move transformations to module, rewrite dynamic import
andrewbranch d87beef
Merge branch 'main' into rewrite-extensions
andrewbranch 3a52370
Make shim for import call / require
andrewbranch 84fa9ff
Process all import calls
andrewbranch 32b3be0
Shim require, but don’t shim if the argument is statically determinab…
andrewbranch 094c03c
Fix existing tests
andrewbranch b1974e0
Fix shimming in CommonJS transform
andrewbranch a125bfd
Merge branch 'main' into rewrite-extensions
andrewbranch 5a1d785
Update baselines after merge
andrewbranch 5506655
Fix helper
andrewbranch 5548868
Check for helper existence
andrewbranch b43ea23
Update baselines
andrewbranch d7b7e62
Sync helper with tslib PR
andrewbranch 4f01fc1
Use firstOrUndefined
andrewbranch 35c6438
Merge branch 'main' into rewrite-extensions
andrewbranch 4c9557c
Rewrite rather than shim literal-argument require/import calls
andrewbranch d2a7841
Sync helper content
andrewbranch 9f677d1
Fix indentation
andrewbranch 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.