From bdec129f976d669e82ce883e41c76b50d490ff67 Mon Sep 17 00:00:00 2001 From: nsemets Date: Sun, 29 Jun 2025 20:03:49 +0300 Subject: [PATCH] fix(budgets): updated limits --- angular.json | 16 +++++++++++++--- package.json | 6 ++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/angular.json b/angular.json index 177c344fd..d73854c98 100644 --- a/angular.json +++ b/angular.json @@ -24,7 +24,12 @@ "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", - "allowedCommonJsDependencies": ["qrcode"], + "allowedCommonJsDependencies": [ + "qrcode", + "cedar-embeddable-editor", + "markdown-it-video", + "ace-builds/src-noconflict/ext-language_tools" + ], "assets": [ "src/assets", { @@ -58,8 +63,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "3MB", - "maximumError": "4MB" + "maximumWarning": "7MB", + "maximumError": "10MB" }, { "type": "anyComponentStyle", @@ -69,6 +74,11 @@ ], "outputHashing": "all" }, + "analyze-bundle": { + "sourceMap": true, + "outputHashing": "none", + "namedChunks": true + }, "development": { "optimization": false, "extractLicenses": false, diff --git a/package.json b/package.json index bd549384a..5d0b56e6c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "icons:build": "npm run icons:optimize && npm run icons:generate", "prepare": "husky", "ngxs:actions": "ng generate @ngxs/store:actions --name --path", - "ngxs:store": "ng generate @ngxs/store:store --name --path" + "ngxs:store": "ng generate @ngxs/store:store --name --path", + "analyze-bundle": "ng build --configuration=analyze-bundle && source-map-explorer dist/**/*.js --no-border-checks" }, "private": true, "dependencies": { @@ -40,8 +41,8 @@ "@ngxs/logger-plugin": "^19.0.0", "@ngxs/store": "^19.0.0", "@primeng/themes": "^19.0.9", - "cedar-embeddable-editor": "^1.5.0", "ace-builds": "^1.42.0", + "cedar-embeddable-editor": "^1.5.0", "chart.js": "^4.4.9", "diff": "^8.0.2", "markdown-it": "^14.1.0", @@ -79,6 +80,7 @@ "lint-staged": "^15.4.3", "ng-mocks": "^14.13.4", "prettier": "3.5.2", + "source-map-explorer": "^2.5.3", "ts-jest": "^29.3.2", "typescript": "~5.7.2", "typescript-eslint": "8.23.0"