Yahav's avatar
Level 3

After update to latest, code splitting/extraction changed

So, i've noticed that ever since i've updated to the latest Laravel Mix version the code splitting has changed. It used to detect whenever i've imported the same javascript file in multiple scripts and it was extracting those to a separate file automatically while now it only extracts to a separate files dynamic imports (eg. import().then() )

I've looked at the documentation upgrade section but none was said about code splitting.. Any idea what happened?

0 likes
2 replies
Sinnbeck's avatar

As mix is just built on top if webpack with a bunch of webpack plugins, you probably need to find the change in one of those

Yahav's avatar
Level 3

I haven't seen any references to the issues described at the Webpack 5 upgrade guide so this must be something with the wrapper/laravel mix

Please or to participate in this conversation.