Skip to content
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

Upstreaming the plugin into the React monorepo #75

Open
gaearon opened this issue Apr 19, 2020 · 3 comments
Open

Upstreaming the plugin into the React monorepo #75

gaearon opened this issue Apr 19, 2020 · 3 comments

Comments

@gaearon
Copy link

gaearon commented Apr 19, 2020

Webpack is the foundation of several projects representing significant chunks the React ecosystem. Today, these are CRA, Next, and Gatsby. Although there are likely more.

Lately, we've been working on React features that work in integration with the compilation toolchain. Such as some of the data fetching / code splitting experiments that are in a very early stage. For those, we'll need to provide webpack plugins. Fast Refresh seems similar. There is a core experience we want to guarantee that in a way can be considered a part of the React brand.

We propose that this plugin be moved into the React monorepo as the canonical source. We've briefly discussed this with @pmmmwh and he doesn't have objections, so I'd like to raise this as a broader discussion. I think there's a few things that ideally need to happen before we do this:

What do you think?

@pmmmwh
Copy link
Owner

pmmmwh commented Apr 19, 2020

I think webpack/webpack#10715 is kinda blocking invalidate implementation (unless we're going full Webpack 5).

@lukevp
Copy link

lukevp commented May 3, 2020

I've been using Fast Refresh in RN since the beta and the workflow is amazing. Hot Reloading is already a massive win for DX, and one of the reasons we're using React for most of our frontend going forward (desktop apps as well). It would be great to have Fast Refresh natively supported in the toolchain of CRA without any customization.

@gaearon
Copy link
Author

gaearon commented May 3, 2020

That's the plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants