{"action":"created","issue":{"url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/86","labels_url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/86/comments","events_url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/86/events","html_url":"https://github.com/gregjacobs/Autolinker.js/issues/86","id":57786093,"number":86,"title":"webpack (6to5) require/import problem ","user":{"login":"max-mykhailenko","id":1213198,"avatar_url":"https://avatars.githubusercontent.com/u/1213198?v=3","gravatar_id":"","url":"https://api.github.com/users/max-mykhailenko","html_url":"https://github.com/max-mykhailenko","followers_url":"https://api.github.com/users/max-mykhailenko/followers","following_url":"https://api.github.com/users/max-mykhailenko/following{/other_user}","gists_url":"https://api.github.com/users/max-mykhailenko/gists{/gist_id}","starred_url":"https://api.github.com/users/max-mykhailenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-mykhailenko/subscriptions","organizations_url":"https://api.github.com/users/max-mykhailenko/orgs","repos_url":"https://api.github.com/users/max-mykhailenko/repos","events_url":"https://api.github.com/users/max-mykhailenko/events{/privacy}","received_events_url":"https://api.github.com/users/max-mykhailenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-16T10:14:53Z","updated_at":"2015-03-30T04:43:23Z","closed_at":null,"body":"I tried to use autolinker from npm module\r\n\r\nAnd after import\r\n```import Autolinker from 'autolinker';```\r\n\r\nget this\r\n``` Uncaught TypeError: Cannot set property 'returnExportsGlobal' of undefined```\r\n\r\nIn code\r\n\r\n```\r\n(function (root, factory) {\r\n\tif (true) {\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\r\n\t\t\treturn root.returnExportsGlobal = factory();\r\n\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\t} else if (typeof exports === \"object\") {\r\n\t\t// Node. Does not work with strict CommonJS, but\r\n\t\t// only CommonJS-like enviroments that support module.exports,\r\n\t\t// like Node.\r\n\t\tmodule.exports = factory();\r\n\t} else {\r\n\t\troot.Autolinker = factory();\r\n\t}\r\n})(undefined, function () {                // why this undefined?\r\n... // autolinker here\r\n```"},"comment":{"url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/comments/87542827","html_url":"https://github.com/gregjacobs/Autolinker.js/issues/86#issuecomment-87542827","issue_url":"https://api.github.com/repos/gregjacobs/Autolinker.js/issues/86","id":87542827,"user":{"login":"gregjacobs","id":302273,"avatar_url":"https://avatars.githubusercontent.com/u/302273?v=3","gravatar_id":"","url":"https://api.github.com/users/gregjacobs","html_url":"https://github.com/gregjacobs","followers_url":"https://api.github.com/users/gregjacobs/followers","following_url":"https://api.github.com/users/gregjacobs/following{/other_user}","gists_url":"https://api.github.com/users/gregjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/gregjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregjacobs/subscriptions","organizations_url":"https://api.github.com/users/gregjacobs/orgs","repos_url":"https://api.github.com/users/gregjacobs/repos","events_url":"https://api.github.com/users/gregjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/gregjacobs/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T04:43:23Z","updated_at":"2015-03-30T04:43:23Z","body":"Hey guys, sorry for the late reply. Not sure exactly what you're doing here though. What do you have installed to give you that `import` statement? "}}