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?

I believe that you can’t, it is a javascript/require thing.
probably based in the origins of the messy javascript/require history and it not being a ‘proper’ module system. but rather being a ‘insert this other script file here’ system.