This is the follow up to a post I wrote recently called From [Require.js to Webpack - Party 1 (the why)](http://j-query.blogspot.com/2015/06/from-requirejs-to-webpack-part-1-reasons.html) which was published in [my personal blog](http://www.jamund.com). In that post I talked about 3 main reasons for moving from require.js to webpack: 1. Common JS support 2. NPM support 3. a healthy loader/plugin ecosystem. Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier. ### From `paths` to `alias` to NPM The first thing you do when you're converting from require.js to webpack is you take your whole require.js configuration file and convert it to a `webpack.config.js` file. In practice for us this meant addressing three areas: 1. Tell webpack where you keep your JS files 1. The enormous `paths` list in our require.js config 2. All of the `shim` config #### Module Path Resolution The first thing you need to do is tell webpack where your JS files are. Require.js could usually infer this based on the `