Suggestion: a polyfill free version?
See original GitHub issueHi @garronej,
First of all Iād like to thank you for all the work youāve put into this. Iāve been using this library from the start and itās pretty much the thing that made migration to MUI v5 possible for me. The amount of work and love youāve put into this is inspiring, so thank you very much!
I had previously opened an issue here with regards to an error I was having with the fromEntries polyfill included in this lib (specifically on ie11). Long story short the polyfill included here requires Symbol.Iterator
, which does come with recommended ie11 polyfills for react apps. Our project doesnāt use those, we instead use the polyfill.io service which allows us to reduce bundle size and also move polyfill dependencies elsewhere. For reference, we ended up including the Object.fromEntries polyfill from there which doesnāt have other polyfill dependencies (https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/Object/fromEntries/polyfill.js).
Recently with further upgrades weāve also had to include Array.find and Proxy, the latter one being slightly harder as itās not really included in any of the major polyfill providers, so it requires that specific package which you linked. Proxy, specifically, is a problem not just in ie11, but in several older browsers, which we started to see errors for in our logs. I know itās all in your README and adding the required polyfills is not particularly hard, but specifically in our case since we run automatic dependency upgrading in our pipelines we tend to see these issues come up in production, even if it only impacts a small percentage of users.
So my suggestion would be if there is a possibility of having a version that doesnāt require any of these polyfills. I havenāt looked into the code to see what Proxy or Array.find is doing, and if there are other ways to do the same thing, so please excuse my request if it doesnāt make any sense. I just thought Iād put the suggestion out there since, for example, even though MUI v5 itself doesnāt support ie11 and older browsers, it does actually work on them bar some stying issues or other very specific problems.
Again, please ignore if this doesnāt make any sense, and thank you for the great work.
Fernando
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
That is absolutely perfect, thank you so much! We donāt use the nested selector api anyways so this is perfect for us. Thanks again, I canāt believe how quickly you sorted this out!
Glad it do it for you!
My secret is I use ts-ci š¤«