-
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
Failed to work when react is external and loaded via standalone script #13
Comments
After looking into both this plugin and I tried to extract In this case, problem becomes a little complex, we should first make |
Yes, the runtime setup have to be done before React's first run. This is unfortunately a limitation from the runtime. I will subscribe to facebook/react#17552, but before that is resolved not a lot could be done here. |
Can you check if facebook/react#17633 fixes this? |
I verified that facebook/react#17633 fixes it, although it will only work with development versions of React. Your snippet uses production versions so you'll need to somehow handle that. |
Fixed in |
@otakustay can you check to see if the plugin works now with |
FWIW I've verified this with the plugin. |
OK - closing this for now. |
@gaearon I can confirm |
Is it possible to provide a Repo/CodeSandbox or something that can reproduce your issue? |
@pmmmwh I'v checked this is caused by another modification of my build tools, this plugin did everything well |
Good to hear that! |
react-refresh 0.9.0
|
The PRODUCTION build will not work. |
With HTML template like:
And a webpack config including:
This plugin fails to work.
I'd like to dive into it a little, but with little knowledge about webpack I'm not sure I can find any valuable ideas.
The text was updated successfully, but these errors were encountered: