File tree Expand file tree Collapse file tree 15 files changed +2799
-4619
lines changed Expand file tree Collapse file tree 15 files changed +2799
-4619
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ pnpm add -D type-fest
107107For most setups, we recommend integrate using ` babel-loader ` .
108108It covers the most use cases and is officially supported by the React team.
109109
110- The examples below will also assume you're using ` webpack-dev-server ` .
110+ The example below will assume you're using ` webpack-dev-server ` .
111111
112112If you haven't done so, set up your development Webpack configuration for Hot Module Replacement (HMR).
113113
@@ -154,9 +154,6 @@ module.exports = {
154154};
155155```
156156
157- > ** :memo : Note** :
158- > ` webpack-plugin-serve ` officially only supports Webpack 4.
159-
160157</details >
161158
162159Then, add the ` react-refresh/babel ` plugin to your Babel configuration and this plugin to your Webpack configuration.
@@ -296,6 +293,9 @@ module.exports = {
296293
297294</details >
298295
296+ For more information on how to set up "Fast Refresh" with different integrations,
297+ please check out [ our examples] ( examples ) .
298+
299299### Overlay Integration
300300
301301This plugin integrates with the most common Webpack HMR solutions to surface errors during development -
Original file line number Diff line number Diff line change 77 "react-dom" : " ^17.0.2"
88 },
99 "devDependencies" : {
10- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0-rc.3 " ,
10+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0" ,
1111 "@testing-library/jest-dom" : " ^5.14.1" ,
12- "@testing-library/react" : " ^12.0 .0" ,
12+ "@testing-library/react" : " ^12.1 .0" ,
1313 "customize-cra" : " ^1.0.0" ,
1414 "react-app-rewired" : " ^2.1.8" ,
1515 "react-refresh" : " ^0.10.0" ,
2222 "eject" : " react-app-rewired eject"
2323 },
2424 "resolutions" : {
25- "browserslist" : " 4.16.7 " ,
25+ "browserslist" : " 4.17.0 " ,
2626 "postcss" : " 7.0.36" ,
2727 "webpack" : " 4.46.0"
2828 },
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 77 "react-dom" : " ^17.0.2"
88 },
99 "devDependencies" : {
10- "@babel/core" : " ^7.14.6 " ,
11- "@babel/preset-env" : " ^7.14.7 " ,
10+ "@babel/core" : " ^7.15.5 " ,
11+ "@babel/preset-env" : " ^7.15.6 " ,
1212 "@babel/preset-flow" : " ^7.14.5" ,
1313 "@babel/preset-react" : " ^7.14.5" ,
14- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0-rc.3 " ,
14+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0" ,
1515 "babel-loader" : " ^8.2.2" ,
1616 "cross-env" : " ^7.0.3" ,
17- "flow-bin" : " ^0.157 .0" ,
17+ "flow-bin" : " ^0.159 .0" ,
1818 "html-webpack-plugin" : " ^5.3.2" ,
1919 "react-refresh" : " ^0.10.0" ,
20- "webpack" : " ^5.42.0 " ,
21- "webpack-cli" : " ^4.7.2 " ,
20+ "webpack" : " ^5.52.1 " ,
21+ "webpack-cli" : " ^4.8.0 " ,
2222 "webpack-dev-server" : " ^3.11.2"
2323 },
2424 "scripts" : {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 77 "react-dom" : " ^17.0.2"
88 },
99 "devDependencies" : {
10- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0-rc.3 " ,
11- "@swc/core" : " ^1.2.76 " ,
12- "@types/react" : " ^17.0.13 " ,
13- "@types/react-dom" : " ^17.0.8 " ,
10+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0" ,
11+ "@swc/core" : " ^1.2.85 " ,
12+ "@types/react" : " ^17.0.20 " ,
13+ "@types/react-dom" : " ^17.0.9 " ,
1414 "cross-env" : " ^7.0.3" ,
15- "fork-ts-checker-webpack-plugin" : " ^6.2.12 " ,
15+ "fork-ts-checker-webpack-plugin" : " ^6.3.3 " ,
1616 "html-webpack-plugin" : " ^5.3.2" ,
1717 "react-refresh" : " ^0.10.0" ,
1818 "swc-loader" : " ^0.1.14" ,
19- "typescript" : " 4.3.5 " ,
20- "webpack" : " ^5.42.0 " ,
21- "webpack-cli" : " ^4.7.2 " ,
19+ "typescript" : " 4.4.3 " ,
20+ "webpack" : " ^5.52.1 " ,
21+ "webpack-cli" : " ^4.8.0 " ,
2222 "webpack-dev-server" : " ^3.11.2"
2323 },
2424 "scripts" : {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 77 "react-dom" : " ^17.0.2"
88 },
99 "devDependencies" : {
10- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0-rc.3 " ,
11- "@types/react" : " ^17.0.13 " ,
12- "@types/react-dom" : " ^17.0.8 " ,
10+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.0" ,
11+ "@types/react" : " ^17.0.20 " ,
12+ "@types/react-dom" : " ^17.0.9 " ,
1313 "cross-env" : " ^7.0.3" ,
14- "fork-ts-checker-webpack-plugin" : " ^6.2.12 " ,
14+ "fork-ts-checker-webpack-plugin" : " ^6.3.3 " ,
1515 "html-webpack-plugin" : " ^5.3.2" ,
1616 "react-refresh" : " ^0.10.0" ,
17- "react-refresh-typescript" : " ^2.0.1 " ,
18- "ts-loader" : " ^9.2.3 " ,
19- "typescript" : " 4.3.5 " ,
20- "webpack" : " ^5.42.0 " ,
21- "webpack-cli" : " ^4.7.2 " ,
17+ "react-refresh-typescript" : " ^2.0.2 " ,
18+ "ts-loader" : " ^9.2.5 " ,
19+ "typescript" : " 4.4.3 " ,
20+ "webpack" : " ^5.52.1 " ,
21+ "webpack-cli" : " ^4.8.0 " ,
2222 "webpack-dev-server" : " ^3.11.2"
2323 },
2424 "scripts" : {
You can’t perform that action at this time.
0 commit comments