Skip to content

Commit

Permalink
feat(build): change the default compilation target to ES2018 (Node.js…
Browse files Browse the repository at this point in the history
… 10.x)

Now that we no longer support Node.js 8.x, we can configure TypeScript
compiler to emit code leveraging newer language constructs available
in Node.js 10.x.

See also 9424b40 which added support for ES2018/Node.js 10.x target
back in the days where we were producing custom `dist` versions
for each target Node.js version supported.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
  • Loading branch information
bajtos committed Apr 23, 2020
1 parent be6f31d commit a9df717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/build/config/tsconfig.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"module": "commonjs",
"esModuleInterop": true,
"moduleResolution": "node",
"target": "es2017",
"target": "es2018",
"sourceMap": true,
"declaration": true,
"importHelpers": true
Expand Down

0 comments on commit a9df717

Please sign in to comment.