{"action":"created","issue":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/265","repository_url":"https://api.github.com/repos/greensock/GreenSock-JS","labels_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/265/comments","events_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/265/events","html_url":"https://github.com/greensock/GreenSock-JS/issues/265","id":324633316,"number":265,"title":"Import using Rollup fails","user":{"login":"kraftwer1","id":2146436,"avatar_url":"https://avatars2.githubusercontent.com/u/2146436?v=4","gravatar_id":"","url":"https://api.github.com/users/kraftwer1","html_url":"https://github.com/kraftwer1","followers_url":"https://api.github.com/users/kraftwer1/followers","following_url":"https://api.github.com/users/kraftwer1/following{/other_user}","gists_url":"https://api.github.com/users/kraftwer1/gists{/gist_id}","starred_url":"https://api.github.com/users/kraftwer1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraftwer1/subscriptions","organizations_url":"https://api.github.com/users/kraftwer1/orgs","repos_url":"https://api.github.com/users/kraftwer1/repos","events_url":"https://api.github.com/users/kraftwer1/events{/privacy}","received_events_url":"https://api.github.com/users/kraftwer1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T14:23:00Z","updated_at":"2018-05-20T12:40:36Z","closed_at":null,"author_association":"NONE","body":"I can't get \"gsap\" to work using Rollup.js.\r\n\r\nSteps to reproduce:\r\n\r\n```\r\ngit clone https://github.com/kraftwer1/rollup-starter-app\r\nnpm install\r\nnpm run build\r\n```\r\n\r\nThis line causes the error (while working fine using Webpack):\r\n\r\n```\r\nimport { TweenLite } from 'gsap';\r\n```\r\n\r\nMessage:\r\n\r\n```\r\n[!] Error: 'TweenLite' is not exported by node_modules/gsap/TweenMax.js\r\nhttps://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module\r\nsrc/main.js (1:9)\r\n1: import { TweenLite } from 'gsap';\r\n```"},"comment":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/comments/390477979","html_url":"https://github.com/greensock/GreenSock-JS/issues/265#issuecomment-390477979","issue_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/265","id":390477979,"user":{"login":"kraftwer1","id":2146436,"avatar_url":"https://avatars2.githubusercontent.com/u/2146436?v=4","gravatar_id":"","url":"https://api.github.com/users/kraftwer1","html_url":"https://github.com/kraftwer1","followers_url":"https://api.github.com/users/kraftwer1/followers","following_url":"https://api.github.com/users/kraftwer1/following{/other_user}","gists_url":"https://api.github.com/users/kraftwer1/gists{/gist_id}","starred_url":"https://api.github.com/users/kraftwer1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraftwer1/subscriptions","organizations_url":"https://api.github.com/users/kraftwer1/orgs","repos_url":"https://api.github.com/users/kraftwer1/repos","events_url":"https://api.github.com/users/kraftwer1/events{/privacy}","received_events_url":"https://api.github.com/users/kraftwer1/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T12:40:36Z","updated_at":"2018-05-20T12:40:36Z","author_association":"NONE","body":"Current workaround:\r\n\r\n```\r\n  commonjs: {\r\n    namedExports: {\r\n      \"node_modules/gsap/TweenMax.js\": [\"TweenLite\"]\r\n    }\r\n  }\r\n```"}}
{"actor":{"display_login":"kraftwer1"}}