Auto merge of #11997 - lnicola:es-target, r=lnicola

minor: Bump target JS version
This commit is contained in:
bors 2022-04-15 18:17:23 +00:00
commit 9ed459751f
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -1,10 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"target": "es2021",
"outDir": "out",
"lib": [
"es2019"
"es2021"
],
"sourceMap": true,
"rootDir": ".",