mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Auto merge of #11997 - lnicola:es-target, r=lnicola
minor: Bump target JS version
This commit is contained in:
commit
9ed459751f
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2019",
|
||||
"target": "es2021",
|
||||
"outDir": "out",
|
||||
"lib": [
|
||||
"es2019"
|
||||
"es2021"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"rootDir": ".",
|
||||
|
|
Loading…
Reference in a new issue