From 493078ae8bedce7287a610ffbe395de067617659 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Thu, 17 Oct 2024 14:23:38 +0200 Subject: [PATCH] Save about 6.6 kB on final bundle size By tree-shaking debug code of `@apollo/client` See also: - https://github.com/kamilkisiela/apollo-angular/discussions/2077#discussioncomment-10970346 - https://www.apollographql.com/docs/react/development-testing/reducing-bundle-size --- angular.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/angular.json b/angular.json index a976835a..88df2dbb 100644 --- a/angular.json +++ b/angular.json @@ -54,6 +54,9 @@ }, "configurations": { "production": { + "define": { + "globalThis.__DEV__": "false" + }, "outputHashing": "all", "budgets": [ {