-
Notifications
You must be signed in to change notification settings - Fork 194
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
Using the external configuration item of webpack in the development environment can cause react refresh to fail #833
Comments
Did you read this?
|
@nyngwang Not in a production environment. During local debugging in the dev environment, external settings were set in the webpack, resulting in the failure of the react refresh webpack plugin hot update |
I made a wrong assumption about your question. For development environment, I recommend you take a full read of #334. At least, there are two examples that seem to be highly relate to your case:
and this:
|
Unfortunately externalizing React is tricky as transforms depends a lot on injection order - echoing the comment above it would be good to look at the sandbox I created. |
在开发环境使用webpack 的 externals 配置项会导致 react-refresh 失效,这有什么解决方案嘛?这个是react-refresh-webpack-plugin本身的BUG吗?
The text was updated successfully, but these errors were encountered: