Currently all classes of a module are dragged into a statically linked binary because ModuleInfos contain a list of all declared classes (for Object.factory).
This linkage should be done weakly instead.
This does not affect shared libraries because those always contain all declarations.
Comment #1 by robert.schadek — 2024-12-13T18:42:43Z