{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/1929","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/1929/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/1929/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/1929/events","html_url":"https://github.com/rollup/rollup/issues/1929","id":293131586,"number":1929,"title":"Bundle UMD name gets passed to the globals function","user":{"login":"MaximKudriavtsev","id":15093892,"avatar_url":"https://avatars2.githubusercontent.com/u/15093892?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximKudriavtsev","html_url":"https://github.com/MaximKudriavtsev","followers_url":"https://api.github.com/users/MaximKudriavtsev/followers","following_url":"https://api.github.com/users/MaximKudriavtsev/following{/other_user}","gists_url":"https://api.github.com/users/MaximKudriavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximKudriavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximKudriavtsev/subscriptions","organizations_url":"https://api.github.com/users/MaximKudriavtsev/orgs","repos_url":"https://api.github.com/users/MaximKudriavtsev/repos","events_url":"https://api.github.com/users/MaximKudriavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximKudriavtsev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-31T11:57:04Z","updated_at":"2018-02-05T13:03:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nAfter updating rollup in [our project](https://github.com/DevExpress/devextreme-reactive) from version 0.50.0 to 0.55.1, we are facing an issue with the `globals` function. Previously, it was called with IDs of the modules that should be added to the bundle. Now, for some reason, it is also called with the bundle `umd` name, but only with its first component.\r\n\r\nFor example, if the `umd` name is `XX.YY`, then the `globals` function is called with `XX`. Looks like a bug.\r\n\r\n[Here is an example](https://github.com/MaximKudriavtsev/rollup-bugs/tree/master) demonstrating this issue.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/363078458","html_url":"https://github.com/rollup/rollup/issues/1929#issuecomment-363078458","issue_url":"https://api.github.com/repos/rollup/rollup/issues/1929","id":363078458,"user":{"login":"MaximKudriavtsev","id":15093892,"avatar_url":"https://avatars2.githubusercontent.com/u/15093892?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximKudriavtsev","html_url":"https://github.com/MaximKudriavtsev","followers_url":"https://api.github.com/users/MaximKudriavtsev/followers","following_url":"https://api.github.com/users/MaximKudriavtsev/following{/other_user}","gists_url":"https://api.github.com/users/MaximKudriavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximKudriavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximKudriavtsev/subscriptions","organizations_url":"https://api.github.com/users/MaximKudriavtsev/orgs","repos_url":"https://api.github.com/users/MaximKudriavtsev/repos","events_url":"https://api.github.com/users/MaximKudriavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximKudriavtsev/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T13:03:11Z","updated_at":"2018-02-05T13:03:11Z","author_association":"NONE","body":"@caub \r\nIf globals and name are put into the config top level, this problem won't be fixed and a warning will be shown.\r\n![image](https://user-images.githubusercontent.com/15093892/35805419-d8b3ff0c-0a8c-11e8-8df8-f73820b8f493.png)\r\n"}}
{"actor":{"display_login":"MaximKudriavtsev"}}