react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
While the page refreshes automatically as expected, if I am in need of refreshing the page (or opening a new page even) the page will error out complaining of even...
Hi greetings, I am working on a large React project created from CRA. After updating from react-scripts 4.0.3 to 5.0.1 i was facing severe compiling time and memory consumption issues....
We have a reusable library component that we develop (built using rollup), that we then use in our main app by running `yarn link`. When we build the reusable component...
Hello pmmmwh, I found out that your lib doesn't fully support TLA, let me give an example: We have 3 files in the same folder: `App.jsx`, `A.jsx` and `B.jsx` `App.jsx`...
Hello! I have a backend for frontend running on port 3000. Is it possible to configure HMR in a way that it works correctly in those situations so that I...
I found two issues with my custom Webpack Plugin for modification source code of module Apply function from plugin: ```js apply(compiler) { compiler.hooks.entryOption.tap(PLUGIN_NAME, (context, entry) => this.onEntryOption(context, entry)) compiler.hooks.normalModuleFactory.tap(PLUGIN_NAME, (factory)...
I have configured webpack to support SSR. At first I implemented that according to example [webpack-hot-middleware](https://github.com/pmmmwh/react-refresh-webpack-plugin/tree/ac9dc02e4cfc6251e9790366df9d1fc61d810fcb/examples/webpack-hot-middleware). Second attempt was following [webpack-plugin-serve](https://github.com/pmmmwh/react-refresh-webpack-plugin/tree/ac9dc02e4cfc6251e9790366df9d1fc61d810fcb/examples/webpack-plugin-serve) example. In both cases the configuration worked flawlessly as...
Hi guys, I am sorry if this is not connected to this library. I am pretty new to this. Iam using react-refresh-webpack-plugin with webpack DevServer. When I run this it...
I have a sample where I build a npm package containing a react component and that I'm trying to use the package as a dependency in the target app. Repo...
After migrating from `React 16` to `React 18` and a hot reloader from `react-hot-loader` to `react-refresh-webpack-plugin` facing that issue when starting webpack: ``` ERROR in ./static/main.jsx Module build failed (from...