Skip to content

Commit 4b71c31

Browse files
committed
Added support for target: es2015
Added support for target: es2015 in `tsconfig.json`. Support for this in TypeScript can be found [here](https://github.com/Microsoft/TypeScript/blob/0f67f4b6f1589756906782f1ac02e6931e1cff13/src/compiler/commandLineParser.ts#L232) and [here](https://github.com/Microsoft/TypeScript/blob/e2c95551b348b10bed7d42fdaff857143e631a0d/src/compiler/diagnosticMessages.json#L2355). (The second example suggests that `es2015` is going to replace `es6`. I didn't notice any tests associated with this - do point me in the right direction if I've missed them.
1 parent 4d7604b commit 4b71c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main/tsconfig/tsconfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ interface CompilerOptions {
6060
stripInternal?: boolean;
6161
suppressExcessPropertyErrors?: boolean; // Optionally disable strict object literal assignment checking
6262
suppressImplicitAnyIndexErrors?: boolean;
63-
target?: string; // 'es3'|'es5' (default)|'es6'
63+
target?: string; // 'es3'|'es5' (default)|'es6'|'es2015'
6464
version?: boolean;
6565
watch?: boolean;
6666
}
@@ -110,7 +110,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
110110
stripInternal: { type: types.boolean },
111111
suppressExcessPropertyErrors: { type: types.boolean },
112112
suppressImplicitAnyIndexErrors: { type: types.boolean },
113-
target: { type: types.string, validValues: ['es3', 'es5', 'es6'] },
113+
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
114114
version: { type: types.boolean },
115115
watch: { type: types.boolean },
116116
}

0 commit comments

Comments
 (0)