From 5596e87140e96b98ffe2216d9b2d3711bbfea70d Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Sat, 17 Oct 2020 04:01:30 -0700 Subject: [PATCH] build: Keep targeting ES2020 Adds the engines key to the package to ensure vercel uses the latest node which supports 2020 things --- package.json | 3 +++ tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6ad74ba..2816dee 100644 --- a/package.json +++ b/package.json @@ -133,6 +133,9 @@ "webpack": "^4.44.1", "webpack-merge": "^4.2.2" }, + "engines": { + "node": "14.x" + }, "volta": { "node": "14.3.0", "yarn": "1.22.4" diff --git a/tsconfig.json b/tsconfig.json index 6780566..ae338fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "experimentalDecorators": true, - "target": "ES2018", + "target": "ES2020", "module": "commonjs", "esModuleInterop": true, "lib": ["dom", "ES2020"],