Rather involved trickery in the build step to work for external consumers, even in the presence of RequireJS