From 4da922e4f4e905a1274e70adca1d875c025b8b46 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Wed, 3 Jul 2024 16:23:18 +0200 Subject: [PATCH] feat(@schematics/angular): use isolatedModules in generated project As 3acb7768317bb05a9cd73fa64e081b5ca0326189 introduced an optimization for projects that use `isolatedModules`, this commit makes projects generated with `ng new` use this option by default. --- .../schematics/angular/workspace/files/tsconfig.json.template | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/schematics/angular/workspace/files/tsconfig.json.template b/packages/schematics/angular/workspace/files/tsconfig.json.template index 10a757508f71..c8e87ddf97cf 100644 --- a/packages/schematics/angular/workspace/files/tsconfig.json.template +++ b/packages/schematics/angular/workspace/files/tsconfig.json.template @@ -10,6 +10,7 @@ "noImplicitReturns": true, "noFallthroughCasesInSwitch": true,<% } %> "skipLibCheck": true, + "isolatedModules": true, "esModuleInterop": true, "sourceMap": true, "declaration": false,