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

Shorthand properties examples #5334

Merged
merged 2 commits into from Feb 17, 2017
Merged

Shorthand properties examples #5334

merged 2 commits into from Feb 17, 2017

Conversation

bhoule
Copy link
Contributor

@bhoule bhoule commented Feb 17, 2017

The shorthand properties example output did not match the actual output

Q A
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Deprecations?
Spec Compliancy?
Tests Added/Pass?
Fixed Tickets
License MIT
Doc PR yes
Dependency Changes

The example output did not match the actual output
Copy link
Member

@xtuc xtuc left a comment

Choose a reason for hiding this comment

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

Good catch 👍

@xtuc xtuc added the PR: Docs 📝 A type of pull request used for our changelog categories label Feb 17, 2017
@@ -30,7 +30,7 @@ var cat = {

```js
var cat = {
getName: function () {
getName: function getName() {
Copy link
Member

Choose a reason for hiding this comment

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

Actually, the current example is correct... the REPL currently only lets you select presets, and not individual plugins... the function is getting its name from transform-es2015-function-name.

(p.s. we'd love for someone to help us augment the REPL to fix this!)

Copy link
Member

Choose a reason for hiding this comment

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

When you run Try on the plugin's page on the website. The preset es2015 is enable by default.

Copy link
Member

Choose a reason for hiding this comment

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

I know but it seems weird to say that the output for this specific transform is what the preset outputs and not the plugin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. I'll limit the change to just the missing space on line 16.

Copy link
Member

Choose a reason for hiding this comment

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

OK for me

The function name comes from the function name transform, not the shorthand property transform.
@existentialism
Copy link
Member

Thanks @bhoule!

@existentialism existentialism merged commit 07dd2b1 into babel:master Feb 17, 2017
existentialism pushed a commit that referenced this pull request May 19, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Docs 📝 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants