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
We are using core-js 3 to polyfill our bundles in a multi-page application but it is adding 400k+ extra to our final js folder. We were thinking if maybe there is a way to add all the polyfills required in a single file so the same polyfills are not repeated in our individual bundles.
It is polyfilling all the bundles correctly but repeating the polyfills individually per bundle which is expected, we were wondering if there is maybe a way to move all polyfills to a single file (polyfills.js) to avoid repetitions?
The text was updated successfully, but these errors were encountered:
It's manual adding of core-js entries. Even if you add just core-js/stable and apply useBuiltIns: 'entry' for optimization for the target engines it will be much better than current 400k+. You can optimize it if you know which features can be used in your project and instead of core-js/stable to use more granular entry points.
We are using core-js 3 to polyfill our bundles in a multi-page application but it is adding 400k+ extra to our final js folder. We were thinking if maybe there is a way to add all the polyfills required in a single file so the same polyfills are not repeated in our individual bundles.
we are using these options:
and we pass our entries like objects:
It is polyfilling all the bundles correctly but repeating the polyfills individually per bundle which is expected, we were wondering if there is maybe a way to move all polyfills to a single file (polyfills.js) to avoid repetitions?
The text was updated successfully, but these errors were encountered: