-
Notifications
You must be signed in to change notification settings - Fork 21
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
Clobbers single line function definition export #7
Comments
I get this even for non-
And
|
Thanks for pointing this one out. Can you tell me the exact versions of fast-async, nodent and acorn-es7-plugin that was installed in your test environment, as I fixed some export-async issues recently. I'm unable to when through issues for a week as I'm away, but will get these patches when I'm back |
For myself:
|
They're all latest, so it might be something I've missed. However, this might be a Babel issue, as the online compiler (same versions as you - no Babel, just nodent and acorn doing the transpiling) seems to generate good code: http://nodent.mailed.me.uk/#export%20async%20function%20foo()%20%7B%7D |
@simonbuchan's comment would seem to support the theory it's a Babel issue, but I'll take a look anyway, unless you determine this one way or the other in advance |
Well they export fine without |
Having the same issues |
Out of interest, what happens if you reverse the order of the plugins (ie fast-async before the presets). I'm still away so I can't test this myself for a few days! |
Fixed in fast-async@6.0.32 |
Confirmed. Thanks! |
NP :) |
Will rewrite an exported function into a non-exported given for example:
export async function foo() {}
This then requires a manual export later in the file.
The text was updated successfully, but these errors were encountered: