-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
"Annotate" exported object to fix named / namespace imports of our API in Node ESM #57133
Merged
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ecca161
Update checkModuleFormat.mjs to test imports
jakebailey 43ea520
Support named / namespace imports of TypeScript API
jakebailey f452551
Simplify
jakebailey 1f64ed0
fix lint
jakebailey 8fe70bc
Fix esm smoke test, probably
jakebailey 485ca88
fmt
jakebailey fedcbbc
Drop leftover metafile
jakebailey 94fadba
Merge branch 'main' into annotate-exports
jakebailey e0d8ea5
Use require instead of dynamic import
jakebailey d8108fc
Rename for clarity
jakebailey 9da7e26
Make output stable
jakebailey f414248
Use code from Evan, hack away __esModule
jakebailey ecf9aae
Leave a comment
jakebailey 066537c
Merge branch 'main' into annotate-exports
jakebailey b1acdfa
Merge branch 'main' into annotate-exports
jakebailey 9eb0f73
Merge branch 'main' into annotate-exports
jakebailey d47cef2
Set ts to module.exports to fix monaco
jakebailey c798c02
Document it
jakebailey 66ee8fe
Fix again, exports is entirely reassigned, not augmented
jakebailey ec54653
Revert isNodeLikeSystem back to pre-5.0 state
jakebailey 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
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.
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.
In the new version,
module
is a parameter and is always provided. This check would no longer do anything. I'm not sure that it really matters that we don't have this.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.
Actually, I'm going to switch this back to the same definition it used to be, e.g. checking for
require
. The comment I left above aboutrequire
stopped being correct at some point as I refined our output bundle format to rewriterequire
temporarily.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 don't believe this will end up mattering in practice, but that's why we merge these sorts of things early in the cycle...)