this is working as designed. using require that way is how you lazy-load other layers after a build. leaving those dependencies out is supposed to happen. if they need to be in the same layer then add them as dependencies in the call to define for this module.