-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Add moduleDetection compiler flag to allow for changing how modules are parsed #47495
Merged
Commits on Jan 18, 2022
-
Add moduleDetection compiler flag to allow for changing how modules a…
…re parsed The default setting is 'auto', where JSX containing files under react-jsx and react-jsxdev are always parsed as modules, and esm-format files under module: node12+ are always parsed as modules, in addition to the 'legacy' detection mode's conditions for other files. (Declaration files are exempt from these new conditions) The 'legacy' mode preserves TS's behavior prior to the introduction of this flag - a file is parsed as a module if it contains an import, export, or import.meta expression. In addition, there is a 'force' mode that forces all non-declaration files to be parsed as modules. (Declaration files are still only modules if they contain a top-level import or export.) This technically breaks the parser API, but it's kinda-sorta backwards compatible so long as you don't need the functionality associated with more recent compiler flags.
Configuration menu - View commit details
-
Copy full SHA for f073cb6 - Browse repository at this point
Copy the full SHA f073cb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53a409b - Browse repository at this point
Copy the full SHA 53a409bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60f709b - Browse repository at this point
Copy the full SHA 60f709bView commit details
Commits on Feb 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9ad5610 - Browse repository at this point
Copy the full SHA 9ad5610View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6215541 - Browse repository at this point
Copy the full SHA 6215541View commit details
Commits on Mar 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9bd8c47 - Browse repository at this point
Copy the full SHA 9bd8c47View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccb851a - Browse repository at this point
Copy the full SHA ccb851aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f9eb659 - Browse repository at this point
Copy the full SHA f9eb659View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcc86cc - Browse repository at this point
Copy the full SHA dcc86ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5c3dc0 - Browse repository at this point
Copy the full SHA e5c3dc0View commit details
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.