Skip to content

Guides - Load Polyfills on Demand #938

Closed
@yurlovm

Description

@yurlovm

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.

Activity

TheLarkInn

TheLarkInn commented on Feb 22, 2017

@TheLarkInn
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

hzoo commented on Feb 22, 2017

@hzoo
Contributor

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

skipjack commented on May 11, 2017

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

changed the title [-]Explanation in documentation How to load polyfills only then they needed.[/-] [+]Guides - Load Polyfills on Demand[/+] on Jun 14, 2017
jeremenichelli

jeremenichelli commented on Jun 28, 2017

@jeremenichelli
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

skipjack commented on Jun 28, 2017

@skipjack
Collaborator

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

jeremenichelli

jeremenichelli commented on Jun 28, 2017

@jeremenichelli
Member

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

jeremenichelli

jeremenichelli commented on Aug 16, 2017

@jeremenichelli
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!

added a commit that references this issue on Aug 25, 2017
f2782aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hzoo@TheLarkInn@jeremenichelli@skipjack@yurlovm

        Issue actions

          Guides - Load Polyfills on Demand · Issue #938 · webpack/webpack.js.org