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
I used this tool to see the js loaded in the project and I see polyfills - I am trying to not load node_modules/gatsby-legacy-polyfills/dist at all - I tried to set browserlists to just latest chrome but still polyfills loads. How can I make sure polyfills is not loaded at all?
Steps to reproduce
Set browserlist to
"browserslist": [
"last 2 Chrome versions"
],
run gatsby clean
run gatsby build
polyfill is still loaded
Expected result
polyfill should not be loaded
Actual result
using this tool I can see that polyfill.js is loaded
Hi that bundle is generated on every build but only loads on older browsers. Try it yourself and load a site in chrome. The polyfill is in the html but won't load (as seen in the network tab). This way Gatsby can support older browsers but not load polyfills when they're not needed.
The bundle analyzer just shows all created bundles and isn't going to be an accurate representation in this case of what the browser loads.
Description
I used this tool to see the js loaded in the project and I see polyfills - I am trying to not load
node_modules/gatsby-legacy-polyfills/dist
at all - I tried to set browserlists to just latest chrome but still polyfills loads. How can I make sure polyfills is not loaded at all?Steps to reproduce
Set browserlist to
Expected result
polyfill should not be loaded
Actual result
using this tool I can see that polyfill.js is loaded
Environment
The text was updated successfully, but these errors were encountered: