Enable corejs option for core bundle bin-prettier.js and third-party.js#6893
Closed
fisker wants to merge 2 commits intoprettier:masterfrom
Closed
Enable corejs option for core bundle bin-prettier.js and third-party.js#6893fisker wants to merge 2 commits intoprettier:masterfrom
corejs option for core bundle bin-prettier.js and third-party.js#6893fisker wants to merge 2 commits intoprettier:masterfrom
Conversation
corejs for core bin-prettier.js and third-party.jscorejs option for core bundle bin-prettier.js and third-party.js
lydell
added a commit
that referenced
this pull request
Nov 9, 2019
Closes #6891. This downgrades the get-stream package from 5.x to 4.x, which does not use `async` functions which works around the problem of `regeneratorRuntime` not being defined (it shouldn’t be needed). This is an alternative solution to #6893 because I don’t know yet if we want to enable `corejs` given that we will most likely drop support for Node.js 8 and older in the next version. Just like #6893 this PR comes without tests, but I verified locally that `--stdin` works after this change.
4 tasks
Member
lydell
added a commit
that referenced
this pull request
Nov 9, 2019
Closes #6891. This downgrades the get-stream package from 5.x to 4.x, which does not use `async` functions which works around the problem of `regeneratorRuntime` not being defined (it shouldn’t be needed). This is an alternative solution to #6893 because I don’t know yet if we want to enable `corejs` given that we will most likely drop support for Node.js 8 and older in the next version. Just like #6893 this PR comes without tests, but I verified locally that `--stdin` works after this change.
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.
this PR requires #6866 , fixes #6891 , I tried to make a test for it, but failed. local test
before
$ cat index.js | node node_modules/prettier/bin-prettier --stdin --parser babel [error] regeneratorRuntime is not definedafter
diff
docs/directory)changelog_unreleased/*/pr-XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨