We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ant design pro后台项目原本是UMI3的,用@umijs/max 升级至 UMI4,并开启mako构建,修改类组件代码,虽然页面自动刷新了,但是实际没有改变,需要手动刷新才能看到效果。函数组件却没有这个问题
@ant-design/pro-cli:1.0.28 @umijs/max:4.4.4
mako.config.json配置如下 ` { "react": { "runtime": "automatic", "pragma": "React.createElement", "import_source": "react", "pragma_frag": "React.Fragment" }, "hash": "true", "devtool": false, "codeSplitting": { "strategy": "granular", "options": { "frameworkPackages": [ "react", "react-dom", "react-router", "react-router-dom", "history", "scheduler", "xlsx", "file-saver", "jszip" ], "libMinSize": 160000 } } }
`
No response
annoyance
The text was updated successfully, but these errors were encountered:
it's by design, class component don't support "fast refresh", please use function component.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
ant design pro后台项目原本是UMI3的,用@umijs/max 升级至 UMI4,并开启mako构建,修改类组件代码,虽然页面自动刷新了,但是实际没有改变,需要手动刷新才能看到效果。函数组件却没有这个问题
Reproduction
@ant-design/pro-cli:1.0.28
@umijs/max:4.4.4
mako.config.json配置如下
`
{
"react": {
"runtime": "automatic",
"pragma": "React.createElement",
"import_source": "react",
"pragma_frag": "React.Fragment"
},
"hash": "true",
"devtool": false,
"codeSplitting": {
"strategy": "granular",
"options": {
"frameworkPackages": [
"react",
"react-dom",
"react-router",
"react-router-dom",
"history",
"scheduler",
"xlsx",
"file-saver",
"jszip"
],
"libMinSize": 160000
}
}
}
`
Logs
No response
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: