The last time I tried to bump webpacker from 3 to 4 at <dayjob> was absolute hell. The fancy chunk splitting logic was spewing out non-deterministic bundles across different machines in our infra. Took a lot of deep digging in the internal graph representation to find the root cause.
I gave a local related meetup talk, slides here.
https://vheis.su/slides/curing-webpack-cancer/#11