Skip to content

1.19 Regression with --stdin #6891

@dairyisscary

Description

@dairyisscary

Environments:

  • Prettier Version: 1.19.0
  • Running Prettier via: CLI
  • Runtime: Node v10.14
  • Operating System: MacOs

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 defined

Seems like the built "binaries" of node_modules/prettier/bin-prettier.js node_modules/prettier/index.js and node_modules/prettier/third-party.js all have this undefined name regeneratorRuntime presumably from a babel generator transformation, probably only used during stream/stdin reading. I double checked that 1.18.2 does not have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease 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!

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions