You don't need to. You just require() whatever module you need, and it would be available.

The reason you need to do this with RequireJS is that RequireJS is asynchronous, modules are loaded asynchronously, and thus it needs to know what to load first. Webpack (and CommonJS in general) is synchronous. By the time you enter the module, everything is already loaded.

Email codedump link for How to specify resolvers dependencies in webpack?