react-app-polyfill seems to be unaffected by browserslist #9276
Unanswered
seansean11
asked this question in
Q&A
Replies: 2 comments
-
Have you deleted node_modules/.cache after changing browserlist? |
Beta Was this translation helpful? Give feedback.
0 replies
-
have you resolve it please? i have same problem that react-app-polyfill bundle 141kb size what ever i changed .browserslistrc with content |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was going to create an
issue
for this, but I figure I should ask first. I am usingreact-app-polyfill
to get IE11 support and following the instructions on the Readme to import bothreact-app-polyfill/ie11
andreact-app-polyfill/stable
in that order to the top of myindex.js
entrypoint. This does give me the ie11 support I need and adds about37kb
to the production bundle size.Out of curiosity, I started to play with the
browserslist
to see if using different browser support would change the polyfills fromcore-js
that got bundled, and it didn't. Regardless of the browser support I define it includes what seems to be all ofcore-js/stable
(not even just the ie11 support).It seems to me that either
@babel/preset-env
or the implementation of it is broken when used in conjunction withbrowserslist
. I wanted to confirm this suspicion before creating anissue
.Beta Was this translation helpful? Give feedback.
All reactions