Also consider script-loader, as mentioned at the end of the Shimming documentation:
The script-loader evaluates code in the global context, similar to
inclusion via a script tag. In this mode, every normal library should
work. require, module, etc. are undefined.