Skip to content

CS2 Discussion: Features: Export default with an object without { syntax? #4965

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

Closed
coffeescriptbot opened this issue Feb 19, 2018 · 2 comments

Comments

@coffeescriptbot
Copy link
Collaborator

From @YamiOdymel on 2017-02-22 15:06

Is it possible to export the object with default without curly braces?

export default {
    name: 'Sidebar'
}

to

export default
    name: 'Sidebar'

Just like how you create an object with a variable:

variable =
    name: 'Sidebar'
@coffeescriptbot
Copy link
Collaborator Author

From @laurentpayot on 2017-02-24 09:11

+1. Exporting default object without curly braces would be really neat, I use it extensively in my Vue components.

@coffeescriptbot
Copy link
Collaborator Author

From @YamiOdymel on 2017-05-22 09:32

Should this issue be closed since it's already been implemented in beta 2?

2017-05-22 5 31 03

coffeescript6/discuss#83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant