{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/17265","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/17265/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/17265/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/17265/events","html_url":"https://github.com/twbs/bootstrap/issues/17265","id":102745151,"number":17265,"title":"Capitalize global module names in UMD builds","user":{"login":"vejersele","id":869669,"avatar_url":"https://avatars.githubusercontent.com/u/869669?v=3","gravatar_id":"","url":"https://api.github.com/users/vejersele","html_url":"https://github.com/vejersele","followers_url":"https://api.github.com/users/vejersele/followers","following_url":"https://api.github.com/users/vejersele/following{/other_user}","gists_url":"https://api.github.com/users/vejersele/gists{/gist_id}","starred_url":"https://api.github.com/users/vejersele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vejersele/subscriptions","organizations_url":"https://api.github.com/users/vejersele/orgs","repos_url":"https://api.github.com/users/vejersele/repos","events_url":"https://api.github.com/users/vejersele/events{/privacy}","received_events_url":"https://api.github.com/users/vejersele/received_events","type":"User","site_admin":false},"labels":[{"id":143643,"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d","default":false},{"id":250176882,"url":"https://api.github.com/repos/twbs/bootstrap/labels/v4","name":"v4","color":"563d7c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-08-24T09:10:39Z","updated_at":"2016-10-28T11:33:48Z","closed_at":null,"body":"It seems that babel by default is lowercasing all module names, which is causing errors when trying to use the UMD builds in global environment.\r\n\r\nPopover.js is requiring global.Tooltip\r\n```javascript\r\n(function (global, factory) {\r\n  if (typeof define === 'function' && define.amd) {\r\n    define('Popover', ['exports', 'module', './tooltip'], factory);\r\n  } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\r\n    factory(exports, module, require('./tooltip'));\r\n  } else {\r\n    var mod = {\r\n      exports: {}\r\n    };\r\n    factory(mod.exports, mod, global.Tooltip);\r\n    global.Popover = mod.exports;\r\n  }\r\n})(this, function (exports, module, _tooltip) { ... });\r\n```\r\n\r\nBut tooltip.js is only defining global.tooltip ...\r\n```javascript\r\n(function (global, factory) {\r\n  if (typeof define === 'function' && define.amd) {\r\n    define('Tooltip', ['exports', 'module', './util'], factory);\r\n  } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\r\n    factory(exports, module, require('./util'));\r\n  } else {\r\n    var mod = {\r\n      exports: {}\r\n    };\r\n    factory(mod.exports, mod, global.Util);\r\n    global.tooltip = mod.exports;\r\n  }\r\n})(this, function (exports, module, _util) { ... });\r\n```\r\n\r\nThis is fixable by leveraging the getModuleId option in the grunt babel:umd configuration as you can see [here](https://github.com/vejersele/bootstrap/blob/bugfix/babelModuleNames/Gruntfile.js#L103). If you want I can open a pull request ..."},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/256898579","html_url":"https://github.com/twbs/bootstrap/issues/17265#issuecomment-256898579","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/17265","id":256898579,"user":{"login":"bardiharborow","id":1073681,"avatar_url":"https://avatars.githubusercontent.com/u/1073681?v=3","gravatar_id":"","url":"https://api.github.com/users/bardiharborow","html_url":"https://github.com/bardiharborow","followers_url":"https://api.github.com/users/bardiharborow/followers","following_url":"https://api.github.com/users/bardiharborow/following{/other_user}","gists_url":"https://api.github.com/users/bardiharborow/gists{/gist_id}","starred_url":"https://api.github.com/users/bardiharborow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardiharborow/subscriptions","organizations_url":"https://api.github.com/users/bardiharborow/orgs","repos_url":"https://api.github.com/users/bardiharborow/repos","events_url":"https://api.github.com/users/bardiharborow/events{/privacy}","received_events_url":"https://api.github.com/users/bardiharborow/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T11:33:48Z","updated_at":"2016-10-28T11:33:48Z","body":"I believe this is no longer valid now we have removed UMD modules."}}
{"actor":{"display_login":"bardiharborow"}}