Necessary polyfills?
See original GitHub issueCould you tell me which polyfills this component depends on?
I’m using it in a environment, where I can’t afford including the complete Babel polyfill. I’d like to include only the polyfills that are necessary.
When I use require('core-js/fn/symbol');
, I get the following error in IE11:
Object doesn't support property or method 'Symbol(Symbol.iterator)_6.dcz7vm7xaw5'
I also tried another Symbol
polyfill with require('es6-symbol/implement');
. IE11 says:
Object expected
Are there other polyfill dependencies apart from Symbol
?
I’d need to get the component working in IE10 and IE11. I’m using version 0.3.2 of the component, as I still have to use React 0.13.3. I’ve also uploaded a repo demonstrating the issue here.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Polyfills and transpilers - The Modern JavaScript Tutorial
We just need to declare the missing function. A script that updates/adds new functions is called “polyfill”. It “fills in” the gap and...
Read more >How to load polyfills only when needed
I know three ready-to-use approaches for that: polyfill.io; the module / nomodule pattern; the useBuiltIns option in @babel/preset-env ...
Read more >Polyfill - MDN Web Docs Glossary: Definitions of Web-related ...
A polyfill is a piece of code (usually JavaScript on the Web) used to ... adjust the styling as appropriate, or whatever else...
Read more >Polyfill.io
It's a service which accepts a request for a set of browser features and returns only the polyfills that are needed by the...
Read more >When and How to Use Polyfills - Bits and Pieces - Bit.dev
A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is documented somewhere what the prerequisites are for each es6 module?
If it’s still not working for you guys, try changing:
for (let foo in bar)
to
for (let foo in Array.from(bar))
Make sure you polyfill
Array.from
.