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
'failed to find top-level export initSync
'
#7
Comments
I just tried parsing the provided script and didn't encounter any issues. I also couldn't find any code in the parser that causes an error |
I believe the issue is in minify-js, and have found a reproducible sample: function bee() {}
export { bee } Looking into a solution now. |
I just had a look again and it appears to be working. It only fails if I choose The error is caused by the fact that in global mode, top-level variables are not actually inside any scope. I'll look at improving the error case and avoiding a panic for this situation. |
Closing in favour of #9. |
Having trouble parsing wasm-bindgen output again, this time it's about exports. File in question:
https://gist.github.com/Carlrs/67035c2639f0df5d4eca13e47f64a2ea
The text was updated successfully, but these errors were encountered: