I have to build a small plugin for Jira/Confluence in order to inject JS.
I am aware about Web Resource module type that allows to inject JS depending the different context of the application. It allows to inject a based on an aggregate of JS source from the Application, where the declared dependencies are analysed in order to have the correct JS.
The generated html looks like
But, how to process if a part of this injected JS has external dependencies not stored on the application. In final, I expect to have
Any idea ?