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": ".",