-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Examples not working in IE / Edge #808
Comments
cc @glenjamin — what should we do / recommend? Given that hot reloading setup is easy to get wrong, the less parts the better, and if you could include a polyfill that would be great. That said I see you reverted the change where you included it. What do you think is a reasonable solution? |
Current conclusion was that bundling a polyfill wasn't reliable, so instead we added a note a to the docs to say one is needed. I'm happy to expand this note to be more obvious, or to include a runtime warning that points users in the right direction. |
Can you expand a bit on what reliability problems you experienced with the polyfill? |
webpack-contrib/webpack-hot-middleware#11 (comment) is the most detail. The main thinking is that as most people will never use this, it wont get enough exposure. |
If we include the polyfill in examples, does that shift the potential reliability issues to us? |
Added a warning and released |
I'd be fine with that, it wouldn't affect me :) The question is: do enough people develop on browsers which don't support it to be worth potentially messing up other users? |
I think there is an important use case for hot reloading on IE: tweaking output to fix IE rendering errors. It's not meant to be primary dev env, but if it doesn't work out of the box, people might assume it isn't supposed to work at all. Can we just include polyfill when we know it isn't available? |
The polyfill itself no-ops when |
Oh, I see. Maybe we can make a project wrapping the polyfill but tweaking it to work with Webpack, and you can depend on that instead. Thanks for explaining. |
So there is runtime error in webpack-hot-middleware since version 2.2.1 which essentially turns off the hot reloading when EventSource isn't available. I am wondering if it's enough for this case of examples. People might want to try it and complain that hot reloading doesn't work. What about writing some general README and putting into examples folder? |
More docs can't hurt. The only thing I could do to make it more obvious would be to use |
It's because of this ... webpack-contrib/webpack-hot-middleware#11
Question is if including polyfill is way to go. Do people even want to run examples in these browsers? I just tried out of curiosity :)
The text was updated successfully, but these errors were encountered: