Remove namespace and/or module name from generated Javascript in multiproject build


I have a multiproject build. The module name is ‘output’ and the namespace of the class is com.acme.myproject.mypackage.MyClass

I can reference this from Javascript as It is not clear how to remove the module name. Is that possible? This is not a problem when targeting AMD or CommonJS, only when generating the UMD global window variable. It seems my package name should be enough to avoid collisions.

Any ideas?