-
-
Notifications
You must be signed in to change notification settings - Fork 670
Imported & Exported ES6 Namespaces now contained properties that would have been queuedExports #1422
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
Conversation
Thanks for investigating :) Added a few comments above, but I must admit that it's always a challenge to dive into this stuff because the linking is kinda abstract, so not sure how much sense the |
You are welcome! I am thoroughly surprised I was able to figure this out actually haha 😂
So yes! I replied to your comments. Before I update the PR I'll wait to see what your replies are so I have a better idea on what to try to implement. For the For the Namespace set, yeah I just wanted you to either say I was understanding what you meant, and/or if my whole add functionality to the file class to allow adding exports later to a namespace makes sense. Either way! Thanks for the review, super excited to get this in 😄 |
@dcodeIO Made Requested changes, and tests are passing on my end! This is good to go! 😸 |
Thanks! 👍 A few more comments above (sorry). I like how the mechanism works now! |
Made requested changes @dcodeIO ! 😄 👍 |
Co-authored-by: Daniel Wirtz <[email protected]>
Made requested changes! This is good to go @dcodeIO 😄 👍 |
Looks great, thank you! |
Yooooooooo! 😄 👍 Thanks for the review @dcodeIO 🚀 |
🎉 This PR is included in version 0.14.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
closes #1417
relates to #1386
relates to #1415
This completely fixes how
queuedExports
are added to imported namespacesimport * as ImportedNamespace
. This creates a map of all importedNamespaces, and then as queued exports are resolve,d they are assigned to the appropriate namespace. It also ensures globals are correctly overriden when we finally generate the code for the said namespace.And in this process I found serveral more bugs in general in just how namespaces are both imported and exported. And this fixes alllll of that 😄 🎉
@dcodeIO for the review 😄 👍
Screenshots of this working