-
Notifications
You must be signed in to change notification settings - Fork 48.6k
Build ReactDOM browser builds into react-dom/dist #4901
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
89f721e
to
ff542de
Compare
I don't fully understand what you're suggesting but please keep in mind the library authors who provide UMD builds. Some libraries depend on just |
Ultimately there should be no trace of Right now the CDN autoupdaters maps libraries on their end to a single package on npm (or bower is possible too I think). That means if we do remove I'm not sure what you mean by keeping the library authors in mind… |
Ah, I get it now.
I phrased it poorly. There needs to be a way to build UMD libs depending on React. Previously, we'd just peer-depend on Now, we peer-depend on Sorry for the braindump, feel free to ignore me. :-) I'll happily wait for 0.14 to actually figure this out. |
@gaearon See #4814 for the addition of
I hope the above makes it clear that the UMD build is also just a link right now with the plan to separate better so that this isn't the case.
The don't need to, but if they are using deprecated APIs they may want to. In that case Does that all make sense?
Noooo that's why we have RCs, to try to get this all sorted out before we screw it up 😉. If we ship and you tell us we did it wrong after the fact, then that's no good. So the root of my question was just what to do with |
I thought cdnjs used our bower package. If it doesn't, I think it can. |
(y) |
cdnjs can use github or npm. Using github is exactly how bower works anyway so yes that's possible. edit: it's not clear how these will picks versions… both are using npm right now and seem to just use the Based on that response you're saying "remove it from Eventually we may want to stop doing that so we can version these things separately. Then we would want multiple CDN packages. But we can cross the bridge later. |
Oh, I had sort of assumed this did remove from react/dist. I guess not… |
It does - that's the change in |
@zpao Thanks for the explanation. Pieces came together in my head now. :-) |
In facebook/react#4901 we're going to be moving `react-dom.js` outside of the `react` npm package. For now we'd like to keep that file still in the same project here on the CDN (and we're still distributing it with the `react` bower package). In order to do that we need to point the autoupdater at the repo we use for bower instead of npm. I think the only difference here is that we store RCs here. We always published those to npm as well but because we never used the `latest` tag, they never ended up here.
In facebook/react#4901 we're going to be moving `react-dom.js` outside of the `react` npm package. For now we'd like to keep that file still in the same project here on the CDN (and we're still distributing it with the `react` bower package). In order to do that we need to point the autoupdater at the repo we use for bower instead of npm. I think the only difference here is that we store RCs here. We always published those to npm as well but because we never used the `latest` tag, they never ended up here.
Alright, jsdelivr already merged their change. I don't expect problems with cdnjs. So I'm going to merge now and if any issues arise, it's just code and we can change it. |
Build ReactDOM browser builds into react-dom/dist
Fixes #4841