-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
1.19 Regression with --stdin #6891
Copy link
Copy link
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Metadata
Metadata
Assignees
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Environments:
Steps to reproduce:
I did a clean install in a new directory of prettier:
$ yarn install prettier $ cat test.js | prettier --stdin --stdin-filepath test.js [error] regeneratorRuntime is not definedSeems like the built "binaries" of
node_modules/prettier/bin-prettier.jsnode_modules/prettier/index.jsandnode_modules/prettier/third-party.jsall have this undefined nameregeneratorRuntimepresumably from a babel generator transformation, probably only used during stream/stdin reading. I double checked that 1.18.2 does not have this issue.