From 1698afc05d013dbd1966c3d1a63c2226410d48f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 15 Apr 2022 18:14:51 +0300 Subject: [PATCH] Bump target JS version --- editors/code/package.json | 2 +- editors/code/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editors/code/package.json b/editors/code/package.json index b7bc60a3b8b..c78f27b8d87 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -27,7 +27,7 @@ "scripts": { "vscode:prepublish": "npm run build-base -- --minify", "package": "vsce package -o rust-analyzer.vsix", - "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14", + "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16", "build": "npm run build-base -- --sourcemap", "watch": "npm run build-base -- --sourcemap --watch", "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests", diff --git a/editors/code/tsconfig.json b/editors/code/tsconfig.json index 7c4fbd21ebe..e2ba2f231ae 100644 --- a/editors/code/tsconfig.json +++ b/editors/code/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2019", + "target": "es2021", "outDir": "out", "lib": [ - "es2019" + "es2021" ], "sourceMap": true, "rootDir": ".",