Skip to content
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

Closed
danielkcz opened this issue Sep 26, 2015 · 12 comments
Closed

Examples not working in IE / Edge #808

danielkcz opened this issue Sep 26, 2015 · 12 comments
Labels

Comments

@danielkcz
Copy link

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 :)

@gaearon
Copy link
Contributor

gaearon commented Sep 26, 2015

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?

@glenjamin
Copy link

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.

@gaearon
Copy link
Contributor

gaearon commented Sep 26, 2015

Can you expand a bit on what reliability problems you experienced with the polyfill?
Just so we better understand the issue.

@glenjamin
Copy link

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.

@gaearon
Copy link
Contributor

gaearon commented Sep 26, 2015

If we include the polyfill in examples, does that shift the potential reliability issues to us?

@glenjamin
Copy link

Added a warning and released v2.2.1

@glenjamin
Copy link

If we include the polyfill in examples, does that shift the potential reliability issues to us?

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?

http://caniuse.com/#feat=eventsource

@gaearon
Copy link
Contributor

gaearon commented Sep 26, 2015

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?

@glenjamin
Copy link

The polyfill itself no-ops when EventSource already exists, but the issue reported was because the polyfills don't work seamlessly with webpack without some config tweaks. As I don't include any webpack config in the middleware, it's difficult to avoid this - with an example or a boilerplate project you may be able to avoid this.

@gaearon
Copy link
Contributor

gaearon commented Sep 26, 2015

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.

@danielkcz
Copy link
Author

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?

@glenjamin
Copy link

More docs can't hurt.

The only thing I could do to make it more obvious would be to use alert instead of console.warn - which is probably going too far :)

@timdorr timdorr closed this as completed Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants