How to make SystemJS transpile 'typescript' based on file extension not contents
问题 I have this SystemJS config in index.html: <body> <script src="node_modules/systemjs/dist/system.js"></script> <script> System.config({ defaultJSExtensions: true, transpiler: 'typescript', map: { typescript: 'node_modules/typescript/lib/typescript.js' }, packages: { "ts": { "defaultExtension": "ts" } }, }); System.import('ts/main'); </script> </body> main.ts: let a = [1, 2, 3]; let b = [1, 2, 3]; I get: Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet