Merge #10062
10062: Set esbuild target as node14 r=matklad a=mtsmfm ref: https://github.com/rust-analyzer/rust-analyzer/pull/10061 Currently, target version is not specified so it's esnext. https://esbuild.github.io/api/#target VSCode uses node 14 since version 1.56. https://github.com/rust-analyzer/rust-analyzer/issues/3167#issuecomment-907058367 Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
This commit is contained in:
commit
2e3322d3f5
@ -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",
|
||||
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14",
|
||||
"build": "npm run build-base -- --sourcemap",
|
||||
"watch": "npm run build-base -- --sourcemap --watch",
|
||||
"lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
|
||||
|
Loading…
x
Reference in New Issue
Block a user