So I have an AMD loader, which ingests HTML files that define Ractive.js components (think HTML imports describing Web Components - it's fairly similar in concept). Similar to @jrburke's Element loader. The discussion around the Ractive single-file-components spec is here, if anyone is interested.
The loader itself isn't currently online but will be in the near future.
Here's the issue: we have several different apps sharing a single page (these are interactive components within a news article), several of which use this loader. There's no sense in including Ractive with each optimised build, so in common with other libraries that are shared by several components (e.g. jQuery and d3) it is excluded from the optimised build and served from a CDN.
The problem is that the loader needs Ractive during the optimisation process, to parse the HTML files into a form it can work with. Because of this