Currently experimenting with Typescript using Visual Studio 2017.
Set up a new directory in Visual studio 2017 ("Add Existing Website"), and included index.html and main.ts.
This is the tsconfig.json configuration file I am using based on general recommendations:
{
"compilerOptions":
{
"sourceMap": false,
"noImplicitAny": false,
"module": "es2015",
"target": "es3"
},
"compileOnSave": true,
"include":
[
"scripts/**/*"
]
}
In index.html, added my file using this structure:
<script src="scripts/main.js" ></script>
However, after opening the page in IE11, only getting a "Syntax error" message with line numbers pointing to import and export statements.
Attempted using requirejs but faced various errors. Made changes to module and target in tsconfig.json without success.
Prefer avoiding dependencies in code, but what steps are necessary to run Typescript-generated javascript in IE11?
Haven't even attempted compatibility back to IE8.
Is IE11 no longer considered a supported browser for this?