You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if there was an article in documentation which explained main strategies how to load polyfills for ES2016 only when browser not supported it and skip them for evergreen browsers.
skipjack, jeremenichelli, Legends, JE-lee, yvele and 1 more
If it's not a huge amount of content maybe a nice little section in the shimming guide would do? If not, let's create a new guide and maybe create a "shimming and polyfilling" group within the Guides section (grouping would be tackled separately in #438).
changed the title [-]Explanation in documentation How to load polyfills only then they needed.[/-][+]Guides - Load Polyfills on Demand[/+]on Jun 14, 2017
Everyone, I'm gonna give it a try and add it to the shimming section since I think it belongs there. I'll try to keep it small, if I fail we can always move it to its own section and add more content and references.
Activity
TheLarkInn commentedon Feb 22, 2017
I think we can use some of the material @hzoo has written up for babel and babel-preset-env. This could be a nice article.
hzoo commentedon Feb 22, 2017
Yeah can check out the readme: https://github.com/babel/babel-preset-env#usebuiltins
http://www.2ality.com/2017/02/babel-preset-env.html just got published based on that too.
Can also suggest just importing individual core-js modules manually as another option.
skipjack commentedon May 11, 2017
If it's not a huge amount of content maybe a nice little section in the shimming guide would do? If not, let's create a new guide and maybe create a "shimming and polyfilling" group within the Guides section (grouping would be tackled separately in #438).
[-]Explanation in documentation How to load polyfills only then they needed.[/-][+]Guides - Load Polyfills on Demand[/+]jeremenichelli commentedon Jun 28, 2017
Has someone taken this? I think is a pretty simple guide to add and I already did that in some projects in my current job so it won't be hard for me.
skipjack commentedon Jun 28, 2017
No one's claimed it, please feel free to pick it up!
jeremenichelli commentedon Jun 28, 2017
Good, I'm going to get into this next week probably.
jeremenichelli commentedon Aug 16, 2017
Everyone, I'm gonna give it a try and add it to the shimming section since I think it belongs there. I'll try to keep it small, if I fail we can always move it to its own section and add more content and references.
PR coming soon!
docs(guides): add "polyfills on demand" to shimming (#1528)