From 58c42aece40fb3ef938b8aa187d2f39a85002034 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Tue, 28 Feb 2017 17:15:52 +0100 Subject: [PATCH] fix(@angular/cli): use inheritance for ng4 Close #5111 --- .../cli/blueprints/ng/files/__path__/tsconfig.app.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/@angular/cli/blueprints/ng/files/__path__/tsconfig.app.json b/packages/@angular/cli/blueprints/ng/files/__path__/tsconfig.app.json index 493162c0438c..f40bd2db7ea3 100644 --- a/packages/@angular/cli/blueprints/ng/files/__path__/tsconfig.app.json +++ b/packages/@angular/cli/blueprints/ng/files/__path__/tsconfig.app.json @@ -1,22 +1,18 @@ {<% if (ng4) { %> "extends": "<%= relativeRootPath %>/tsconfig.json", - "compilerOptions": { - "lib": [ - "es2016", - "dom" - ],<% } else { %> + "compilerOptions": {<% } else { %> "compilerOptions": { "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, + "target": "es5", "lib": [ "es2016", "dom" ],<% } %> "outDir": "<%= relativeRootPath %>/out-tsc/app", - "target": "es5", "module": "es2015", "baseUrl": "", "types": []