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
Remove side effects from core module #3395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source code structure becomes a little weird this way.
Unless we think we can get the global inits working again later, I wonder if we should just move those init functions into deck.js
(or at least lib folder).
I could see some issues in that one might for instance want to call loaders.gl load on something before creating deck and now one does get different loaders before and after deck is instantiated.
But this is still the lesser evil, as we have get this darned tree-shaking issue fixed...
0a7deaf
to
b299ed6
Compare
That's fair; I have pushed an alternative approach. It should make no change to the current behavior. |
b299ed6
to
dcd66b2
Compare
dcd66b2
to
e77402c
Compare
Due to the fact that this was/is a rather inconvenient bug for those affected, would it be possible to release this fix as version 7.1.11 so we don't have to wait until the release of 7.2.0? |
Background
Per discussion in #3213,
sideEffects
is not sufficient to prevent tree shaking in some use cases.Change List
Tested with build-bundle script.