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

Guides - Load Polyfills on Demand #938

Closed
yurlovm opened this issue Feb 22, 2017 · 7 comments
Closed

Guides - Load Polyfills on Demand #938

yurlovm opened this issue Feb 22, 2017 · 7 comments
Labels

Comments

@yurlovm
Copy link

yurlovm commented Feb 22, 2017

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.

@TheLarkInn
Copy link
Member

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
Copy link
Contributor

hzoo commented 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
Copy link
Collaborator

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

@skipjack skipjack changed the title Explanation in documentation How to load polyfills only then they needed. Guides - Load Polyfills on Demand Jun 14, 2017
@jeremenichelli
Copy link
Member

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
Copy link
Collaborator

No one's claimed it, please feel free to pick it up!

@jeremenichelli
Copy link
Member

Good, I'm going to get into this next week probably.

@jeremenichelli
Copy link
Member

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!

skipjack pushed a commit that referenced this issue Aug 25, 2017
Add an explanation of how to load polyfills on demand section in
the shimming guide.

Resolves #938
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

5 participants