Menu

Close
  • Primary
Subscribe
BigFont Blog Menu

The power of ES 2017 (es8) in TypeScript even with NodeJS 6.11.0

06 July 2017 on typescript, javascript, ecma-script
{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6",
        "lib": [
            "es2017",
            "dom"
        ]
    },
    "exclude": [
        "node_modules"
    ]
}

This tsconfig.json lets us use the power of es2017 (es8) while compiling to es2015 (es6), which Node 6.11.0 supports.

Shaun Luttin's Picture

Shaun Luttin

Read more posts by this author.

Share this post

Twitter Facebook Google+

Why do you write to console instead of using a debugger?

Note: When I find bugs, I put them outside, in the garden, instead of killing them; bugs are people…

Legitimate uses of undefined in JavaScript

As function argument placeholders? Yes. To mark a variable for garbage collection? Yes. For instantiation? No. let x = undefined;…

BigFont Blog © 2018
Proudly published with Ghost