{"action":"created","issue":{"url":"https://api.github.com/repos/tleunen/react-mdl/issues/267","repository_url":"https://api.github.com/repos/tleunen/react-mdl","labels_url":"https://api.github.com/repos/tleunen/react-mdl/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/tleunen/react-mdl/issues/267/comments","events_url":"https://api.github.com/repos/tleunen/react-mdl/issues/267/events","html_url":"https://github.com/tleunen/react-mdl/issues/267","id":142935046,"number":267,"title":"ReactMDL.js bundle: \"react\" or \"react-dom\"  instead of require('React') or require('ReactDOM')","user":{"login":"PavelPZ","id":2981508,"avatar_url":"https://avatars.githubusercontent.com/u/2981508?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPZ","html_url":"https://github.com/PavelPZ","followers_url":"https://api.github.com/users/PavelPZ/followers","following_url":"https://api.github.com/users/PavelPZ/following{/other_user}","gists_url":"https://api.github.com/users/PavelPZ/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPZ/subscriptions","organizations_url":"https://api.github.com/users/PavelPZ/orgs","repos_url":"https://api.github.com/users/PavelPZ/repos","events_url":"https://api.github.com/users/PavelPZ/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPZ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tleunen/react-mdl/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-23T11:32:20Z","updated_at":"2016-03-23T13:22:27Z","closed_at":null,"body":"Is it possible to have this header in installed ```node_modules\\react-mdl\\out\\ReactMDL.js``` file?\r\n\r\n```javascript\r\n(function webpackUniversalModuleDefinition(root, factory) {\r\n\tif(typeof exports === 'object' && typeof module === 'object')\r\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\r\n\telse if(typeof define === 'function' && define.amd)\r\n\t\tdefine([\"react\", \"react-dom\"], factory);\r\n\telse if(typeof exports === 'object')\r\n\t\texports[\"ReactMDL\"] = factory(require(\"react\"), require(\"react-dom\"));\r\n\telse\r\n\t\troot[\"ReactMDL\"] = factory(root[\"react\"], root[\"react-dom\"]);\r\n})(this, function(__WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_14__) {```\r\n\r\n```require(\"react\")``` etc. seems to be the standard (see e.g. react-dom.js header) and I have problem with using ReactMDL.js in my NPM free deplyment.\r\n"},"comment":{"url":"https://api.github.com/repos/tleunen/react-mdl/issues/comments/200341589","html_url":"https://github.com/tleunen/react-mdl/issues/267#issuecomment-200341589","issue_url":"https://api.github.com/repos/tleunen/react-mdl/issues/267","id":200341589,"user":{"login":"tleunen","id":1972567,"avatar_url":"https://avatars.githubusercontent.com/u/1972567?v=3","gravatar_id":"","url":"https://api.github.com/users/tleunen","html_url":"https://github.com/tleunen","followers_url":"https://api.github.com/users/tleunen/followers","following_url":"https://api.github.com/users/tleunen/following{/other_user}","gists_url":"https://api.github.com/users/tleunen/gists{/gist_id}","starred_url":"https://api.github.com/users/tleunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleunen/subscriptions","organizations_url":"https://api.github.com/users/tleunen/orgs","repos_url":"https://api.github.com/users/tleunen/repos","events_url":"https://api.github.com/users/tleunen/events{/privacy}","received_events_url":"https://api.github.com/users/tleunen/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T13:22:27Z","updated_at":"2016-03-23T13:22:27Z","body":"Oh I see.. Thanks for the clarification. I didn't get that at first.\r\n\r\nI guess it's because of these lines: https://github.com/tleunen/react-mdl/blob/master/webpack.config.js#L3-L4\r\n\r\nFeel free to submit a PR to fix the import names :)"}}