Repository navigation
Adding an outExtension option to control the file extension of emitted files - #54583
Closed
Kræn Hansen (kraenhansen) wants to merge 6 commits into
Closed
Kræn Hansen (kraenhansen) wants to merge 6 commits into
Kræn Hansen (kraenhansen) wants to merge 6 commits into
Conversation
added 6 commits
June 9, 2023 00:02
An assert was failing in "prepareConvertersForEnumLikeCompilerOptions"
Author
|
@microsoft-github-policy-service agree company="MongoDB" |
Member
|
I'm closing for clarity because the PR is not implementing the behavior approved in the linked issue (no wrongdoing implied by this statement, since the comment postdates the PR) |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #54573 by adding a new
outExtensionoption to control the extension of the emitted files (except.tsx,.jsxand.jsoninput files which won't be affected by theoutExtensionoption):"input"(default): Infers the extension of out files from the extension of the input file. This is the behaviour prior to this PR and I've added it to limit the intrusiveness of the fix."module": Infers the extension of out files from themoduleoption, if"commonjs"the out files will use.cjs, if any"es6"through"esnext"the out files will use.mjsand.jswill be used for any other case."cjs": Use.cjsfor all out files."mjs": Use.mjsfor all out files."js": Use.jsfor all out files.Note: I'm drafting the PR until the associated issue in the
Backlogmilestone.