Skip to content

Commit

Permalink
fix(bundler-webpack): Fix hmr failure caused by exporting clientLoade…
Browse files Browse the repository at this point in the history
…r or routeProps from routing components
  • Loading branch information
xierenyuan committed Sep 8, 2023
1 parent f3c9ed0 commit bbba1b1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"test": "umi-scripts jest-turbo"
},
"dependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@svgr/core": "6.5.1",
"@svgr/plugin-jsx": "^6.5.1",
"@svgr/plugin-svgo": "^6.5.1",
Expand All @@ -37,6 +36,7 @@
"@umijs/bundler-utils": "workspace:*",
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
"@umijs/mfsu": "workspace:*",
"@umijs/react-refresh-webpack-plugin": "0.5.11",
"@umijs/utils": "workspace:*",
"cors": "^2.8.5",
"css-loader": "6.7.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler-webpack/src/config/fastRefreshPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-ignore
import FastRefreshPlugin from '@pmmmwh/react-refresh-webpack-plugin/lib';
import Config from '@umijs/bundler-webpack/compiled/webpack-5-chain';
// @ts-ignore
import FastRefreshPlugin from '@umijs/react-refresh-webpack-plugin/lib';
import { MFSU_NAME } from '../constants';
import { Env, IConfig } from '../types';

Expand Down
55 changes: 48 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bbba1b1

Please sign in to comment.