From 078837b70ed55950f9b35ecd09b1c8bee5b8e3d7 Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Sat, 18 Mar 2017 02:46:25 -0500 Subject: [PATCH] build(components): future proof ScriptTarget The ScriptTarget ES6 does not exist in newer versions of TypeScript. --- tools/gulp/tasks/components.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gulp/tasks/components.ts b/tools/gulp/tasks/components.ts index 3d2468a2ea52..93fd0b2900f7 100644 --- a/tools/gulp/tasks/components.ts +++ b/tools/gulp/tasks/components.ts @@ -39,7 +39,7 @@ task(':build:components:release', sequenceTask( /** Builds components typescript in ES5, ES6 target. For specs Karma needs CJS output. */ task(':build:components:ts:es5', tsBuildTask(tsconfigPath, { target: ScriptTarget.ES5 })); -task(':build:components:ts:es6', tsBuildTask(tsconfigPath, { target: ScriptTarget.ES6 })); +task(':build:components:ts:es6', tsBuildTask(tsconfigPath, { target: ScriptTarget.ES2015 })); task(':build:components:ts:spec', tsBuildTask(tsconfigPath, { target: ScriptTarget.ES5, module: ModuleKind.CommonJS }));