Skip to content

Commit 086f872

Browse files
kyliauKeen Yee Liau
authored andcommitted
build: output es2017
The language server only supports node engine `>=10.9.0 <13.0.0`, and according to https://node.green/ this version fully supports async/await, so we don't have to downlevel to es2015. This will make the bundle smaller and faster. https://github.com/angular/vscode-ng-language-service/blob/7fe63cbae86b1aa56df75dac96d7c008c16a4604/server/package.json#L12
1 parent 7fe63cb commit 086f872

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

integration/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
4-
"target": "ES2017",
54
"outDir": "../dist/integration",
65
"rootDirs": ["..", "dist"]
76
},

syntaxes/test/driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function snapshotTest({scopeName, grammarFiles, testFile}: TestCase): Prom
4747
return spawn('yarn', options, {stdio: 'inherit' /* use parent process IO */}).catch(code => code);
4848
}
4949

50-
describe('snapshot tests', async () => {
50+
describe('snapshot tests', () => {
5151
for (let tc of SNAPSHOT_TEST_CASES) {
5252
it(`should work for ${tc.name}`, async () => {
5353
const ec = await snapshotTest(tc);

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2015",
3+
"target": "es2017",
44
"module": "commonjs",
55
"moduleResolution": "node",
66
"sourceMap": true,

0 commit comments

Comments
 (0)