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

Error with babel plugin transform-export-extensions #29877

Closed
AlexandrAnash opened this issue Jun 29, 2017 · 1 comment
Closed

Error with babel plugin transform-export-extensions #29877

AlexandrAnash opened this issue Jun 29, 2017 · 1 comment
Assignees
Labels
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@AlexandrAnash
Copy link

  • VSCode Version: 1.13.1
  • OS Version: Windows 10 Pro

Steps to Reproduce:
I'm use babel plugin "transform-export-extensions"
In order to do re-export - export default from './foo';
but I have error [js] ';' expected.
It can be fixed?

Reproduces without extensions: Yes

@vscodebot vscodebot bot added the extensions Issues concerning extensions label Jun 29, 2017
@mjbvz mjbvz self-assigned this Jun 29, 2017
@mjbvz mjbvz added javascript JavaScript support issues typescript Typescript support issues and removed extensions Issues concerning extensions labels Jun 29, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 29, 2017

export default from is still an ECMASCript proposal and not yet part of the standard. We are tracking support for this and other export forms upstream: microsoft/TypeScript#4813

I'll add a note to that issue about export default from

As a workaround, I believe you can instead write export {default} from './foo'

@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Jun 30, 2017
@mjbvz mjbvz closed this as completed Jun 30, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants