{"action":"created","issue":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/168","repository_url":"https://api.github.com/repos/greensock/GreenSock-JS","labels_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/168/comments","events_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/168/events","html_url":"https://github.com/greensock/GreenSock-JS/issues/168","id":168767299,"number":168,"title":"What is the correct way to load GSAP with Webpack?","user":{"login":"bishopZ","id":1138587,"avatar_url":"https://avatars.githubusercontent.com/u/1138587?v=3","gravatar_id":"","url":"https://api.github.com/users/bishopZ","html_url":"https://github.com/bishopZ","followers_url":"https://api.github.com/users/bishopZ/followers","following_url":"https://api.github.com/users/bishopZ/following{/other_user}","gists_url":"https://api.github.com/users/bishopZ/gists{/gist_id}","starred_url":"https://api.github.com/users/bishopZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bishopZ/subscriptions","organizations_url":"https://api.github.com/users/bishopZ/orgs","repos_url":"https://api.github.com/users/bishopZ/repos","events_url":"https://api.github.com/users/bishopZ/events{/privacy}","received_events_url":"https://api.github.com/users/bishopZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-01T23:42:33Z","updated_at":"2016-08-11T00:41:46Z","closed_at":null,"body":"When I load GSAP with webpack, I get the error \r\n`_doc = document; document is not defined.`\r\n\r\n[This page](http://webpack.github.io/docs/shimming-modules.html) suggests several ways to \"shim\" modules. But none of them are working for me.\r\n\r\n[This forum thread](http://greensock.com/forums/topic/11484-using-gsap-with-nodejs/) suggests some ways to shim the module to be compatible with ES6 import statements and works if \"global\" is defined in the node environment.\r\n\r\nI don't see a clear solution. Any help appreciated. "},"comment":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/comments/239046818","html_url":"https://github.com/greensock/GreenSock-JS/issues/168#issuecomment-239046818","issue_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/168","id":239046818,"user":{"login":"jackdoyle","id":2389714,"avatar_url":"https://avatars.githubusercontent.com/u/2389714?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdoyle","html_url":"https://github.com/jackdoyle","followers_url":"https://api.github.com/users/jackdoyle/followers","following_url":"https://api.github.com/users/jackdoyle/following{/other_user}","gists_url":"https://api.github.com/users/jackdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdoyle/subscriptions","organizations_url":"https://api.github.com/users/jackdoyle/orgs","repos_url":"https://api.github.com/users/jackdoyle/repos","events_url":"https://api.github.com/users/jackdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/jackdoyle/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T00:41:46Z","updated_at":"2016-08-11T00:41:46Z","body":"Sorry about the delayed response. Been traveling. I peeked at the project and unfortunately I just don't have time to dig into the 20,000+ files and isolate the issue for you. I can definitely say that many others have confirmed that they can use GSAP just fine in Webpack/Node/React apps, and I've done it myself so I'm not quite sure what's causing the issue in your particular setup. I really wish I had a better answer for you. Have you had any success creating a reduced test case? "}}
{"actor":{"display_login":"jackdoyle"}}