{"action":"created","issue":{"url":"https://api.github.com/repos/ternjs/tern/issues/727","repository_url":"https://api.github.com/repos/ternjs/tern","labels_url":"https://api.github.com/repos/ternjs/tern/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/ternjs/tern/issues/727/comments","events_url":"https://api.github.com/repos/ternjs/tern/issues/727/events","html_url":"https://github.com/ternjs/tern/issues/727","id":139570093,"number":727,"title":"Webpack: This plugin works only in a CommonJS environment","user":{"login":"nikini","id":108916,"avatar_url":"https://avatars.githubusercontent.com/u/108916?v=3","gravatar_id":"","url":"https://api.github.com/users/nikini","html_url":"https://github.com/nikini","followers_url":"https://api.github.com/users/nikini/followers","following_url":"https://api.github.com/users/nikini/following{/other_user}","gists_url":"https://api.github.com/users/nikini/gists{/gist_id}","starred_url":"https://api.github.com/users/nikini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikini/subscriptions","organizations_url":"https://api.github.com/users/nikini/orgs","repos_url":"https://api.github.com/users/nikini/repos","events_url":"https://api.github.com/users/nikini/events{/privacy}","received_events_url":"https://api.github.com/users/nikini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-09T12:57:17Z","updated_at":"2016-03-09T13:06:03Z","closed_at":"2016-03-09T13:06:03Z","body":"Hello! I keep getting `This plugin works only in a CommonJS environment` when I use webpack. My configuration is as following:\r\n\r\n```\r\n{\r\n    \"ecmaVersion\": 5,\r\n    \"libs\": [\r\n        \"browser\",\r\n        \"jquery\"\r\n    ],\r\n    \"loadEagerly\": [\r\n        \"resources/javascripts/**/*.js\"\r\n    ],\r\n    \"plugins\": {\r\n        \"complete_strings\": {},\r\n        \"doc_comment\": {\r\n            \"fullDocs\": true\r\n        },\r\n        \"commonjs\": {},\r\n        \"webpack\": {}\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ternjs/tern/issues/comments/194288129","html_url":"https://github.com/ternjs/tern/issues/727#issuecomment-194288129","issue_url":"https://api.github.com/repos/ternjs/tern/issues/727","id":194288129,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T13:06:03Z","updated_at":"2016-03-09T13:06:03Z","body":"Yes, Electron (the Chrome shell they use) does split in-node and in-chrome scripts, and I assume Atom plugins are ran in the chrome space, and for some reason don't have direct access to node libraries.\r\n\r\nIt might be possible to find a workaround, and a patch that implements such a thing would be nice to have, but I'm not going to work on it myself."}}