Title: Missed imports when transpiling in IE11 (but not in Chrome/Edge/FF) · Issue #29193 · microsoft/TypeScript · GitHub
Open Graph Title: Missed imports when transpiling in IE11 (but not in Chrome/Edge/FF) · Issue #29193 · microsoft/TypeScript
X Title: Missed imports when transpiling in IE11 (but not in Chrome/Edge/FF) · Issue #29193 · microsoft/TypeScript
Description: TypeScript Version: 3.2.2 Browser: IE11 Search Terms: Code // Source import * as theModule from 'someModule'; let myObj = { handler: () => { let f = function(val) { return theModule.someFunction(); } f(); } }; // Output in IE11 begins wi...
Open Graph Description: TypeScript Version: 3.2.2 Browser: IE11 Search Terms: Code // Source import * as theModule from 'someModule'; let myObj = { handler: () => { let f = function(val) { return theModule.someFunction();...
X Description: TypeScript Version: 3.2.2 Browser: IE11 Search Terms: Code // Source import * as theModule from 'someModule'; let myObj = { handler: () => { let f = function(val) { return theModule.some...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29193
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missed imports when transpiling in IE11 (but not in Chrome/Edge/FF)","articleBody":"\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 3.2.2\r\n**Browser**: IE11\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\n**Code**\r\n\r\n```ts\r\n// Source\r\nimport * as theModule from 'someModule';\r\nlet myObj = {\r\n handler: () => {\r\n let f = function(val) {\r\n return theModule.someFunction();\r\n }\r\n f();\r\n }\r\n}; \r\n\r\n// Output in IE11 begins with (missed dependency, incorrect):\r\nSystem.register([], function (exports_1, context_1) {\r\n// Output in Chrome/Edge/FF begins with (dependency is present, correct):\r\nSystem.register([\"someModule\"], function (exports_1, context_1) {\r\n```\r\n\r\n**Expected behavior:**\r\nSource code is transpiled in run-time in a browser. It imports 'someModule' module, and uses a function from it (theModule.someFunction()), so the transpiled code for the System module type should reference 'someModule' in the System.register call, like here:\r\n```ts\r\nSystem.register([\"someModule\"], ...\r\n```\r\n**Actual behavior:**\r\nThis is how it works in Chrome/Edge/FF browsers, but not in IE11. In IE11 the module reference is missed, like here:\r\n```ts\r\nSystem.register([], ...\r\n```\r\n\r\n**Repro sample:** \r\nClone the following repo:\r\n[https://github.com/alexi2014/TS-IE-Missed-Import](https://github.com/alexi2014/TS-IE-Missed-Import)\r\n> npm install\r\n> npm run start\r\n\r\nThe page will be opened in the default browser. The top text area contains source code, and the bottom one contains transpiled code.\r\nDepending on the browser where you open the page (Chrome/Edge/FF vs IE11), the transpiled result will be different.\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n","author":{"url":"https://github.com/alexi2014","@type":"Person","name":"alexi2014"},"datePublished":"2018-12-28T20:37:37Z","url":"https://github.com/microsoft/TypeScript/issues/29193"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9f37be50-0f00-0b19-4868-35d9e7376a98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFD8:3F8AB1:2C41D1F:383A2F9:6B019A49 |
| html-safe-nonce | 2855fe479c857128ab558d306c6ec9b35bbdf65c9d5d447d43fc86875857ff60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkQ4OjNGOEFCMToyQzQxRDFGOjM4M0EyRjk6NkIwMTlBNDkiLCJ2aXNpdG9yX2lkIjoiMzY2NDM5NDU3NDY1MjA4Njg1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45ee9786a3a1a5c54629e0f9ae51f9a864491ddb5f8708c95302328e8691ce23 |
| hovercard-subject-tag | issue:394714919 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/29193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0688a10fb0bc87ac2ea9251e07c517ca4a6ae343a3feb895a6875c7e5a01a611/microsoft/TypeScript/issues/29193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0688a10fb0bc87ac2ea9251e07c517ca4a6ae343a3feb895a6875c7e5a01a611/microsoft/TypeScript/issues/29193 |
| og:image:alt | TypeScript Version: 3.2.2 Browser: IE11 Search Terms: Code // Source import * as theModule from 'someModule'; let myObj = { handler: () => { let f = function(val) { return theModule.someFunction();... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexi2014 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width