{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/3244","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/3244/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/3244/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/3244/events","html_url":"https://github.com/webpack/webpack/issues/3244","id":187724320,"number":3244,"title":"No require.main.filename on nodejs","user":{"login":"apsavin","id":632171,"avatar_url":"https://avatars.githubusercontent.com/u/632171?v=3","gravatar_id":"","url":"https://api.github.com/users/apsavin","html_url":"https://github.com/apsavin","followers_url":"https://api.github.com/users/apsavin/followers","following_url":"https://api.github.com/users/apsavin/following{/other_user}","gists_url":"https://api.github.com/users/apsavin/gists{/gist_id}","starred_url":"https://api.github.com/users/apsavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsavin/subscriptions","organizations_url":"https://api.github.com/users/apsavin/orgs","repos_url":"https://api.github.com/users/apsavin/repos","events_url":"https://api.github.com/users/apsavin/events{/privacy}","received_events_url":"https://api.github.com/users/apsavin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T14:25:12Z","updated_at":"2016-11-07T14:25:12Z","closed_at":null,"body":"**I'm submitting a bug report**\r\nNo `require.main.filename` on nodejs\r\n\r\n**Webpack version:**\r\n1.10.5\r\n\r\n\r\n**Please tell us about your environment:**\r\nOSX 10.12\r\n\r\n\r\n**Current behavior:**\r\n`require.main.filename` is undefined after webpack compilation\r\n\r\n**Expected/desired behavior:**\r\n`require.main.filename` is a string - see [nodejs docs](https://nodejs.org/api/all.html#modules_accessing_the_main_module)\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.** \r\nIt seems that any build of node app with webpack is affected\r\nSample [conf](https://gist.github.com/apsavin/3e734043ed7da2a89f55cb8f62510753)\r\n\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\nNode.js features must not be broken after build\r\n \r\n* **Language:** [all] "}}
{"actor":{"display_login":"apsavin"}}