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
bug: ReferenceError: Cannot access 'main$1' before initialization #4325
Labels
Comments
dang, good point! didn't even notice! 😄 |
9 tasks
Fix at #4991 |
This issue has been resolved via #4991 as part of rollup@3.21.8. You can test it via |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rollup Version
2.62.0
Operating System (or Browser)
n/a
Node Version (if applicable)
n/a
Link To Reproduction
https://rollupjs.org/repl/?version=2.62.0&shareable=JTdCJTIybW9kdWxlcyUyMiUzQSU1QiU3QiUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMGZvbyUyMGZyb20lMjAnLiUyRm1haW4uanMnJTNCJTVDbmV4cG9ydCUyMColMjBhcyUyMG5zJTIwZnJvbSUyMCcuJTJGbWFpbi5qcyclM0IlNUNuZXhwb3J0JTIwZGVmYXVsdCUyMCdmb28nJTNCJTIyJTJDJTIyaXNFbnRyeSUyMiUzQXRydWUlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTIyZm9ybWF0JTIyJTNBJTIyZXMlMjIlMkMlMjJuYW1lJTIyJTNBJTIybXlCdW5kbGUlMjIlMkMlMjJhbWQlMjIlM0ElN0IlMjJpZCUyMiUzQSUyMiUyMiU3RCUyQyUyMmdsb2JhbHMlMjIlM0ElN0IlN0QlN0QlMkMlMjJleGFtcGxlJTIyJTNBbnVsbCU3RA==
the above link works. this is only a problem when build with
generatedCode: 'es2015'
, which can't [yet] be replicated with the online bundle.the above is then bundled to:
which throws an error:
The text was updated successfully, but these errors were encountered: