Skip to content
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

JS: clean up babel plugins #8435

Merged
merged 3 commits into from
May 29, 2020
Merged

Conversation

fisker
Copy link
Member

@fisker fisker commented May 28, 2020

Fixes #8430

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/pr-XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

"functionBind",
"functionSent",
"dynamicImport",
// "dynamicImport", // Need ref
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't find a link says this enabled, but removing it seems no effect, the ast is also right

          "callee": {
            "type": "Import",
            "start": 0,
            "end": 6,
            "loc": {
              "start": { "line": 1, "column": 0 },
              "end": { "line": 1, "column": 6 }
            }
          },

Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

|> # + "!"
|> new User.Message(#)
|> await #
|> console.log; // This is a method call.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this pipeline format like this? Bug?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm not sure why you think this is a bug. Could you explain?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be

value
  |> await #
  |> doubleSay(#, ", ")
  |> capitalize  // This is a function call.
  |> # + "!"
  |> new User.Message(#)
  |> await #
  |> console.log; // This is a method call.

All aligned?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems happens in && too, I'll open an issue later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thank you.

Copy link
Member Author

@fisker fisker May 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably you mistook the issue number:smile:

@fisker fisker merged commit e143e58 into prettier:master May 29, 2020
@fisker fisker deleted the clean-babel-plugins branch May 29, 2020 01:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean babel plugins
3 participants