modules.require is only valid if the wrapper is commonjs

I am not using commonjs to load my scripts. This removes the wrapper when using another loader.