Splitting large widgets - Mendix Forum

Splitting large widgets


We are finding that some widgets result in JS bundles that are larger than recommended.

In such situations, webpack recommends splitting the bundle into multiple JS files (https://webpack.js.org/plugins/split-chunks-plugin/)

Adding this optimisation to a pluggable widget doesn’t work in Mendix; I am not sure why but perhaps because of the way widget bundles are loaded.

It would be great to support this (and even enable it by default for production builds).

This is somewhat related to https://community.mendix.com/link/ideas/1675 and there may be a single solution for both?


0 answers