DEV Community


Generating ES3 from Typescript?

bugmagnet profile image Bruce Axtens ・1 min read

Can one generate pure ES3 from Typescript?


Something changed between Typescript 4.0.x and 4.1.x and I'm mystified. Previously I was able to generate pure ES3 from ES(whatever) code. I'm developing in Visual Studio Code.

This is my tsconfig.json

  "compileOnSave": true
  "compilerOptions": {
    "allowSyntheticDefaultImports": false,
    "target": "ES3",
    "lib": ["ESNext"],
    "moduleResolution": "node",
    "module": "es2015",
    "types": [".\\types"],
    "removeComments": true

Discussion (0)

Editor guide