-
Notifications
You must be signed in to change notification settings - Fork 11
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 load in IE #3
Comments
This module is published as ES 2018 (see tsconfig.json), so you'll need to transpile it yourself to ES5, so that it would work in IE - that extra comma is just one example of the new syntax not supported by IE. The demo app transpiles the module using webpack and babel, and it did work in IE11 the last time I checked. If you use webpack, remember that it does not transpile |
@gkubisa Thanks for explanation! Is it possible to publish this module in other (multiple) targets? It doesn't need to change es2018, just add another one that works on IE by default? Maybe the default entry is es2018 but we can still import from a different lib folder to load IE compatible modules? I'm working in a mono repo where it's extremely hard to modify webpack configuration due to the fact how our tool chain is used. |
It would be technically possible to publish for multiple targets, however, I don't want to do it because it would add complexity just for the sake of supporting IE11 by default, while a good general solution already exists.
We're in a similar situation now with one of our older products and are currently updating our build system to support ES6 in node_modules. It is very hard but it also seems inevitable, as the number of ES6-only modules is bound to increase over time. If updating the build system is not an option for you at this time, a quick workaround could be to set up a new module which simply depends on |
@gkubisa Not sure if your vision of the library doesn't include IE at all. I still feel supporting IE by default is good for more adoption from teams like us whose product still have major usage on IE browser. |
To be honest, I didn't make any serious effort to support IE11, as we ended up using this lib in nodejs with jsdom. IE11 support would certainly be nice to have and while I don't currently have time to implement it, I will accept a PR. Here's what I think needs to be done:
Would you like to do this work, @ipip2005 ? Let me know, if you have any questions or suggestions regarding the above. |
It looks like a problem with the patterns passed to |
Nice one! Please add the benchmark to the |
Added benchmark to |
Thanks for your help with fixing it @ipip2005 . The changes are published in 0.7.2. |
This extra comma and some other syntax errors are causing script loading errors in IE. We're not able to use the library on IE browser.
When loading demo page on IE locally, also seen this error
The text was updated successfully, but these errors were encountered: