Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

[WIP] Trying out react@next #525

Closed
wants to merge 1 commit into from
Closed

[WIP] Trying out react@next #525

wants to merge 1 commit into from

Conversation

clarkbw
Copy link
Contributor

@clarkbw clarkbw commented Jul 26, 2017

Trying out React 16 Beta

It works, but I don't think this is merge ready yet.

Mostly we've fallen behind the react train. I've updated PropTypes and CreateClass to their shims but if this moved to ES6 Modules and JSX that would help quite a bit further.

@@ -10,7 +10,7 @@

["module-resolver", {
"alias": {
"react-dom": "react-dom/dist/react-dom",
"react-dom": "react-dom/umd/react-dom.development",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious: what is the necessity for these aliases?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's forcing UMD instead of default (CJS) target?

Copy link

@gaearon gaearon Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I’m curious why. In the past people used to do this to speed up DEV builds (since React had too many modules). But now CJS is also a single bundle so maybe it‘s unnecessary.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry. I wasn't really trying to answer your question so much as confirming that I understood what it was doing.

Your assertion seems legit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasonLaster is the right person to answer that question, my understanding is that this has to do with how we package react within the browser toolbox.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here was the warning we saw:
firefox-devtools/debugger#1640

And the fix:
firefox-devtools/debugger#1731

We've had several other issues creep in over time
#179
#23

Copy link

@gaearon gaearon Jul 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the issue is due to a custom module system (per #23)? I'm not sure what “single module plugin” is.

I guess if it works around a bug for you, that’s cool, I just wanted to verify. Please not react.development bundle is not suitable for production.

@clarkbw
Copy link
Contributor Author

clarkbw commented Sep 13, 2017

Closing this out for now, its a good start but will take some more work to make it happen. 🙇

@clarkbw clarkbw closed this Sep 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants