{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/789","repository_url":"https://api.github.com/repos/gaearon/react-hot-loader","labels_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/789/comments","events_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/789/events","html_url":"https://github.com/gaearon/react-hot-loader/issues/789","id":288415692,"node_id":"MDU6SXNzdWUyODg0MTU2OTI=","number":789,"title":"\"react-hot-loader/babel\" includes file path in production mode","user":{"login":"TheAifam5","id":2192274,"node_id":"MDQ6VXNlcjIxOTIyNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2192274?v=4","gravatar_id":"","url":"https://api.github.com/users/TheAifam5","html_url":"https://github.com/TheAifam5","followers_url":"https://api.github.com/users/TheAifam5/followers","following_url":"https://api.github.com/users/TheAifam5/following{/other_user}","gists_url":"https://api.github.com/users/TheAifam5/gists{/gist_id}","starred_url":"https://api.github.com/users/TheAifam5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheAifam5/subscriptions","organizations_url":"https://api.github.com/users/TheAifam5/orgs","repos_url":"https://api.github.com/users/TheAifam5/repos","events_url":"https://api.github.com/users/TheAifam5/events{/privacy}","received_events_url":"https://api.github.com/users/TheAifam5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-01-14T15:15:55Z","updated_at":"2018-07-16T08:19:47Z","closed_at":"2018-01-22T10:21:16Z","author_association":"NONE","body":"### Description\r\nI found that \"react-hot-loader/babel\" includes files path in production mode, also when \"process.env.NODE_ENV\" is defined to \"production\".\r\nAfter removing from webpack configuration and babelrc, everything looks fine.\r\n\r\n### Expected behavior\r\nThere shouldn't be any paths in production mode.\r\n\r\n### Actual behavior\r\n\"react-hot-loader/babel\" includes files path, ignoring the environment type.\r\n\r\n### Environment\r\nReact Hot Loader version: next (today refreshed)\r\n\r\n`node -v`: v9.4.0\r\n `npm -v`: 5.6.0\r\nOperating system: Windows 10\r\nBrowser and version: Firefox Nightly 59.0a1\r\n\r\n### My webpack config to prevent including file paths inside the compiled scripts.\r\n```\r\n{\r\n  loader: 'babel-loader',\r\n  options: {\r\n    babelrc: true,\r\n    ... env.name === 'development' ? {\r\n      plugins: ['react-hot-loader/babel'],\r\n    } : {},\r\n  },\r\n},\r\n```"},"comment":{"url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/comments/405176930","html_url":"https://github.com/gaearon/react-hot-loader/issues/789#issuecomment-405176930","issue_url":"https://api.github.com/repos/gaearon/react-hot-loader/issues/789","id":405176930,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTE3NjkzMA==","user":{"login":"lili21","id":4456380,"node_id":"MDQ6VXNlcjQ0NTYzODA=","avatar_url":"https://avatars3.githubusercontent.com/u/4456380?v=4","gravatar_id":"","url":"https://api.github.com/users/lili21","html_url":"https://github.com/lili21","followers_url":"https://api.github.com/users/lili21/followers","following_url":"https://api.github.com/users/lili21/following{/other_user}","gists_url":"https://api.github.com/users/lili21/gists{/gist_id}","starred_url":"https://api.github.com/users/lili21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lili21/subscriptions","organizations_url":"https://api.github.com/users/lili21/orgs","repos_url":"https://api.github.com/users/lili21/repos","events_url":"https://api.github.com/users/lili21/events{/privacy}","received_events_url":"https://api.github.com/users/lili21/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T08:19:47Z","updated_at":"2018-07-16T08:19:47Z","author_association":"NONE","body":"I think `mode: production` already did that for me."}}
{"actor":{"display_login":"lili21"}}