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
'export default from' can not be correctly compiled #7293
Comments
Hey @leaves4j! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I think that's a bug in babylon. I'll look into it. export default from; This code should throw an Reference error as |
@KFlash , exactly, i was going to do the same.. I didn't know how V8, Esprima or SM implement it though. Thanks for the feedback.. |
@KFlash , i've submitted a PR, would really appreciate review. |
also on 7.0.0 it seems like there is no way to make the following work:
|
@vzaidman did you find a solution? |
i did many things and cant recall which of them helped. make sure to use sorry - no better advice |
@vzaidman do you think you could maybe post a snippet of your babel setup so we can see what presets/plugins you used and what babel dependencies you have to make everything work? Been stuck on this one for a little bit. I know order matters with some so that would also be helpful to see |
not sure it's the best possible but still:
notice we use decorators so |
Adding the plugins '@babel/plugin-proposal-export-namespace-from' and '@babel/plugin-proposal-export-default-from' worked for me. |
Choose one: bug
Input Code
Babel/Babylon Configuration (.babelrc, package.json, cli command)
Expected Behavior
Compiled correctly
Current Behavior
Throw an error
The text was updated successfully, but these errors were encountered: