[Solved] translate typescript to javascript [closed]
If you use Webpack or any Angular (2+) seed project, even angular-cli, all your TypeScript code will “compiled” to ECMAScript and you can choose the version (from 5 to 7). Just open tsconfig.json. target will give a concrete version of ECMAScript you need. “compilerOptions”: { “outDir”: “./dist/out-tsc”, “baseUrl”: “src”, “sourceMap”: true, “declaration”: false, “moduleResolution”: “node”, … Read more