You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Sourceimport*astheModulefrom'someModule';letmyObj={handler: ()=>{letf=function(val){returntheModule.someFunction();}f();}};// Output in IE11 begins with (missed dependency, incorrect):System.register([],function(exports_1,context_1){// Output in Chrome/Edge/FF begins with (dependency is present, correct):System.register(["someModule"],function(exports_1,context_1){
Expected behavior:
Source 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:
System.register(["someModule"], ...
Actual behavior:
This is how it works in Chrome/Edge/FF browsers, but not in IE11. In IE11 the module reference is missed, like here:
The page will be opened in the default browser. The top text area contains source code, and the bottom one contains transpiled code.
Depending on the browser where you open the page (Chrome/Edge/FF vs IE11), the transpiled result will be different.
Related Issues:
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.2.2
Browser: IE11
Search Terms:
Code
Expected behavior:
Source 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:
Actual behavior:
This is how it works in Chrome/Edge/FF browsers, but not in IE11. In IE11 the module reference is missed, like here:
Repro sample:
Clone the following repo:
https://github.com/alexi2014/TS-IE-Missed-Import
The page will be opened in the default browser. The top text area contains source code, and the bottom one contains transpiled code.
Depending on the browser where you open the page (Chrome/Edge/FF vs IE11), the transpiled result will be different.
Related Issues:
The text was updated successfully, but these errors were encountered: