The only thing I'm not sure about are these escalations to global scope if it's not being loaded in a require context.  Think that's necessary?  Otherwise I'm quite happy to take your guidance (although @matthew-andrews , I know you love all the dependency managers and may have an opinion)