-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Side effect free imports & backwards compatibility APIs #3384
Side effect free imports & backwards compatibility APIs #3384
Conversation
0fca095
to
328d512
Compare
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.
feat(compat): set up correct imports & get build working for rxjs-comapt
misspelled commit
So is |
@simonbuchan Intriguing note there. I can't find that anywhere in Webpack docs, and |
@simonbuchan Also, there is a reason for the |
Huh, is a very recent change, but it's not even mentioned in the release changelog. Here's the PR: webpack/webpack#6536 |
Thanks for the reference commit. Yes, we would want to have the separate package either way, but good to know on the new feature. |
ad43c8c
to
c89960a
Compare
Generated by 🚫 dangerJS |
8b8bd78
to
d69a486
Compare
…and other top-level symbols
…tionLike -> ISubscription)
…st including globals
d69a486
to
d4b0116
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR will address a couple things at once:
rxjs
side-effect-free to take advantage of Webpack 4 and significantly decrease application bundle sizesrxjs-compat
package to be separately distributed to NPMrxjs-compat
holds imports that produce side-effects (any code that monkey patches throughadd
operator will live here)legacy-reexports
directory used at build time to make imports such asrxjs/Observable
still work (though devs will need to installrxjs-compat
to make these imports behave correctly)Basically, this makes the default case for Rx side-effect free, but includes many breaking API changes. The
rxjs-compat
package mitigates these breaking changes.