Skip to content

default export syntax not supported yet? (or regression?) #627

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
trusktr opened this issue Jun 2, 2019 · 2 comments
Closed

default export syntax not supported yet? (or regression?) #627

trusktr opened this issue Jun 2, 2019 · 2 comments

Comments

@trusktr
Copy link
Member

trusktr commented Jun 2, 2019

I'm unable to use default exports, f.e. import Size from './Size'. It gives me a syntax error during build.

See this issue for more details: https://github.com/jtenner/as-pect/issues/71

@willemneal
Copy link
Contributor

As someone who has only been in the typescript/javascript community for a little over a year and a half, I'm still unsure what the benefits to a default import are. Personally, I find them annoying because it seems they are the exception and make things less flexible. This is not to say I'm totally against them, just want to know why you find them useful other than not writing { Size }.

@dcodeIO
Copy link
Member

dcodeIO commented Jun 4, 2019

Duplicate of #98

@dcodeIO dcodeIO marked this as a duplicate of #98 Jun 4, 2019
@dcodeIO dcodeIO closed this as completed Jun 4, 2019
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

3 participants