{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8436","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8436/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8436/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8436/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8436","id":152773104,"node_id":"MDU6SXNzdWUxNTI3NzMxMDQ=","number":8436,"title":"umd module compiler option doesn't have a fallback for global namespace.","user":{"login":"niemyjski","id":1020579,"node_id":"MDQ6VXNlcjEwMjA1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1020579?v=4","gravatar_id":"","url":"https://api.github.com/users/niemyjski","html_url":"https://github.com/niemyjski","followers_url":"https://api.github.com/users/niemyjski/followers","following_url":"https://api.github.com/users/niemyjski/following{/other_user}","gists_url":"https://api.github.com/users/niemyjski/gists{/gist_id}","starred_url":"https://api.github.com/users/niemyjski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemyjski/subscriptions","organizations_url":"https://api.github.com/users/niemyjski/orgs","repos_url":"https://api.github.com/users/niemyjski/repos","events_url":"https://api.github.com/users/niemyjski/events{/privacy}","received_events_url":"https://api.github.com/users/niemyjski/received_events","type":"User","site_admin":false},"labels":[{"id":114201833,"node_id":"MDU6TGFiZWwxMTQyMDE4MzM=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75","default":false},{"id":113971155,"node_id":"MDU6TGFiZWwxMTM5NzExNTU=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-05-03T13:27:09Z","updated_at":"2018-06-13T23:14:21Z","closed_at":null,"author_association":"NONE","body":"Most umd patterns have a third fallback that allows exporting to the window.namesapace = export; As such the current umd module export is pretty broken when a huge number of users / library developers need to support all three.\n\n``` js\n(function(root, factory) {\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof exports === 'object') {\n    module.exports = factory(require, exports, module);\n  } else {\n    root.exceptionless = factory();\n  }\n}(this, function(require, exports, module) {}\n```\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/397117265","html_url":"https://github.com/Microsoft/TypeScript/issues/8436#issuecomment-397117265","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8436","id":397117265,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzExNzI2NQ==","user":{"login":"outofthisworld","id":8555871,"node_id":"MDQ6VXNlcjg1NTU4NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8555871?v=4","gravatar_id":"","url":"https://api.github.com/users/outofthisworld","html_url":"https://github.com/outofthisworld","followers_url":"https://api.github.com/users/outofthisworld/followers","following_url":"https://api.github.com/users/outofthisworld/following{/other_user}","gists_url":"https://api.github.com/users/outofthisworld/gists{/gist_id}","starred_url":"https://api.github.com/users/outofthisworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outofthisworld/subscriptions","organizations_url":"https://api.github.com/users/outofthisworld/orgs","repos_url":"https://api.github.com/users/outofthisworld/repos","events_url":"https://api.github.com/users/outofthisworld/events{/privacy}","received_events_url":"https://api.github.com/users/outofthisworld/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T23:14:21Z","updated_at":"2018-06-13T23:14:21Z","author_association":"NONE","body":"Is it not possible for the typescript compiler to incorporate a bundle process, either one that already exists - webpack/rollup or one that theoretically shouldn't be too difficult to implement? I mean there are solutions to this problem, namely export as CommonJS and have a bundler re-bundle as UMD. However that kind of defeats the purpose of having the UMD option in typescript. \r\n\r\nYou wouldn't really have to change anything for the current UMD process, just add an extra config option so previous code is still maintained in the same way. "}}
{"actor":{"display_login":"outofthisworld"}}