Unnamed repository; edit this file 'description' to name the repository.
Bump target JS version
Laurențiu Nicola 2022-04-15
parent 24cf957 · commit 1698afc
-rw-r--r--editors/code/package.json2
-rw-r--r--editors/code/tsconfig.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index b7bc60a3b8..c78f27b8d8 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 7c4fbd21eb..e2ba2f231a 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": ".",