July 2018
— Someone good with webpack here?
Isnt webpack supposed to split a shared import into a seperate chunk instead of having the lib in every chunk its imported?
— Works with preact but doesnt work with react?!
— Show some code
— Wat
— It's supposed to split every import that way
— Are you sure?
— Nope, but it would be horrible otherwise
— Tree shaking?
— No no, I mean
— Imagine every require translated into an IIFE
—
const axios = (function (...) { // entire source of axios + dependencies as IIFE's})();