Gapminder / tools-page

Gapminder tools page vanilla
8 stars 5 forks source link

Don't load polyfills in the same bundle for modern browsers #167

Closed angiehjort closed 3 years ago

angiehjort commented 3 years ago

this will considerably decrease the bundle size

angiehjort commented 3 years ago

after changing importing of core.js polyfills to only import stage 3 proposals and higher, the size of polyfills becomes negligible

import "core-js/stage/3"; import "core-js/es/array/flat-map";

7b9a693c4b3a433ce6363fca14a0390a9647b1a0