how to share code and share third party js libraries across a group of pluggable widgets?

0
Hi Team, We are developing a group of pluggable widgets(3DHub.mpk, which contains dozens of pluggable widgets, see Figure1), In our project, we defined some shared modules(codes expected to be shared across our widgets) and also use some third party js libraries, each widgets will consuming the shared modules and third party js libraries. After build, we find these shared modules and third party js libraries were packaged into each widget, seems each widget is independent, this is unwanted and unexpected and bloadted our mpk package,  see Figure2 in attachment.     Ideally, mendix should provide a configurations for the shared modules and third party js libraries and make them avaialbe for our group of widgets when 3DHub.mpk module being added to Mendix app.  Like the mendix way you had made these libs avaialbe for any widgets(Figure3): react react-native big.js ref Mendix doc: https://docs.mendix.com/refguide/mendix-client/#pluggable-widgets Can anyone share me some guide on how to define/use share code and third party js libraries across groups of pluggable widgets?  Our project info: 3DViewer https://sprintr.home.mendix.com/link/buzz/6aa73f9f-9425-4342-a89e-6299d74f2df4 https://marketplace.mendix.com/link/component/118345
asked
0 answers