Hi,as i understand from the documentation, stub modules is a conf used to avoid duplicated pattern imports.
I'm trying a product (collective.venue) that has several dependencies and in particular plone.patternslib.
Patternslib register two bundles with some stub modules (select2 for example) in registry.xml
Installing that product (patternslib) in a clean Plone 5.1 site (built with coredev buildout), when i open the edit form for News Items (for example), i have several errors in the browser console like this :
patterns.pat.select2: Failed while initializing 'select2' pattern. query function not defined for Select2 s2id_autogen9
And installing collective.venue, i have these errors doubled, because it (or another its dependency) registers a new bundle with select2 as stub resource too.
If i understand correctly, the problem is that there are several js loaded in the page, that tries to instantiate/use the same pattern..and this should be avoided by stub modules.
Anyone else noticed similar problems with stub modules?