Updating to Webpack 5
Currently django-webpack-loader doesn't support webpack 5 and it looks like this package is not well supported.
webpack 5 have features like split chunks will help with loading of the app faster by splitting big JS file to mini chunks. But using of split chuck may need additional configuration or/and coding changes. MyLA doesn't have the need to do this yet since the PROD JS file that is generated main-4abb51f066094585825d.js (974 KiB) is still less. But as project keep growing this might be an issue in future so split chunk is solution we just need to investigate on this and come up with a right design
and also think about alternative options to django-webpack-loader
- https://github.com/shonin/django-manifest-loader
- https://pascalw.me/blog/2020/04/19/webpack-django.html
There is a fix for this based on work done for CAE.