{"action":"created","issue":{"url":"https://api.github.com/repos/bdefore/universal-redux/issues/49","labels_url":"https://api.github.com/repos/bdefore/universal-redux/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/bdefore/universal-redux/issues/49/comments","events_url":"https://api.github.com/repos/bdefore/universal-redux/issues/49/events","html_url":"https://github.com/bdefore/universal-redux/issues/49","id":127135388,"number":49,"title":"Source maps show transpiled code ","user":{"login":"aam229","id":8674708,"avatar_url":"https://avatars.githubusercontent.com/u/8674708?v=3","gravatar_id":"","url":"https://api.github.com/users/aam229","html_url":"https://github.com/aam229","followers_url":"https://api.github.com/users/aam229/followers","following_url":"https://api.github.com/users/aam229/following{/other_user}","gists_url":"https://api.github.com/users/aam229/gists{/gist_id}","starred_url":"https://api.github.com/users/aam229/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aam229/subscriptions","organizations_url":"https://api.github.com/users/aam229/orgs","repos_url":"https://api.github.com/users/aam229/repos","events_url":"https://api.github.com/users/aam229/events{/privacy}","received_events_url":"https://api.github.com/users/aam229/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T00:29:26Z","updated_at":"2016-01-18T09:59:34Z","closed_at":null,"body":"On Windows (I haven't tried it on Linux), running the starter project with `npm run dev` generates source maps but they are for the transpiled (es5) code. If I build it with `npm run build`, I get the source maps for the original es6/JSX code. Updating [this line](https://github.com/bdefore/universal-redux/blob/e9827ce0c9ef244520129e57adbb82173d2ad1de/bin/merge-babel-config.js#L35) to\r\n```js\r\nconst jsLoaders = isProduction ? [babelLoader, strip.loader('debug')] : [babelLoader];\r\n```\r\nseems to fix it. I'm not familiar enough with Babel loaders to explain why it works one way and not the other, it's only based on my observations. You will probably want to test it out more thoroughly than I did. \r\n\r\nThe second issue is that the `strip-loader` is used when the environment is set to development. I believe [this line](https://github.com/bdefore/universal-redux/blob/e9827ce0c9ef244520129e57adbb82173d2ad1de/bin/merge-babel-config.js#L5), should be changed to\r\n```js\r\nconst isProduction = process.env.NODE_ENV === 'production';\r\n```\r\nPlease let me know if I can help you with this issue (or any other).\r\n "},"comment":{"url":"https://api.github.com/repos/bdefore/universal-redux/issues/comments/172483256","html_url":"https://github.com/bdefore/universal-redux/issues/49#issuecomment-172483256","issue_url":"https://api.github.com/repos/bdefore/universal-redux/issues/49","id":172483256,"user":{"login":"bdefore","id":142472,"avatar_url":"https://avatars.githubusercontent.com/u/142472?v=3","gravatar_id":"","url":"https://api.github.com/users/bdefore","html_url":"https://github.com/bdefore","followers_url":"https://api.github.com/users/bdefore/followers","following_url":"https://api.github.com/users/bdefore/following{/other_user}","gists_url":"https://api.github.com/users/bdefore/gists{/gist_id}","starred_url":"https://api.github.com/users/bdefore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdefore/subscriptions","organizations_url":"https://api.github.com/users/bdefore/orgs","repos_url":"https://api.github.com/users/bdefore/repos","events_url":"https://api.github.com/users/bdefore/events{/privacy}","received_events_url":"https://api.github.com/users/bdefore/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T09:59:34Z","updated_at":"2016-01-18T09:59:34Z","body":"@aam229 oof, that second one is embarassing. thanks for catching that. strip-loader has come along for the ride from the upstream project, and in fact as configured was not stripping anything since no parameters were being provided. i've removed it from UR with 3.0.0-rc10. in case anyone else wants to use it, you should be able to do so by providing a custom webpack configuration specifying it as your js loader."}}