How can I add modules to bpmn-to-image?
I have some modules that add custom decorators and shapes and would like to have them rendered.
I assume that in
I should be able to add
additionalModules: [ MyModule ]
But how can I load the module? Trying
import MyModule from './modules/mymodule/';
or
const MyModule = relative(__dirname, require.resolve('./modules/mymodule/index.js'));
didn’t work for me.