Skip to content
This repository was archived by the owner on Feb 19, 2018. It is now read-only.

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

Closed
YamiOdymel opened this issue Feb 22, 2017 · 3 comments
Closed

Comments

@YamiOdymel
Copy link

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'
@laurentpayot
Copy link

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

@YamiOdymel
Copy link
Author

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

2017-05-22 5 31 03

#83

@coffeescriptbot coffeescriptbot changed the title Export default with an object without { syntax? CS2 Discussion: Features: Export default with an object without { syntax? Feb 19, 2018
@coffeescriptbot
Copy link
Collaborator

Migrated to jashkenas/coffeescript#4965

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

No branches or pull requests

4 participants