From 7a49c8ffa3b0fab9381b582ebad52277278ad95a Mon Sep 17 00:00:00 2001 From: Aukevanoost Date: Tue, 25 Nov 2025 08:55:23 +0100 Subject: [PATCH 1/3] fix: Formatted files --- apps/mfe1/src/app/nx-welcome.component.ts | 119 +++++++++--- apps/mfe1/src/index.html | 2 +- apps/mfe2/src/app/nx-welcome.component.ts | 119 +++++++++--- apps/mfe2/src/index.html | 2 +- .../tests/native-federation.spec.ts | 12 +- apps/playground/src/app/app.component.spec.ts | 2 +- apps/playground/src/index.html | 2 +- apps/playground/src/test-setup.ts | 2 +- .../enhanced/src/lib/init-federation.ts | 6 +- .../enhanced/src/lib/loadRemoteModule.ts | 8 +- .../src/lib/loader/dynamic-federation.ts | 28 +-- libs/mf-tools/README.md | 11 +- libs/mf-tools/src/lib/utils/global-state.ts | 2 +- .../src/lib/web-components/bootstrap-utils.ts | 4 +- libs/mf/post-build.js | 2 +- libs/mf/src/builders/build/builder.ts | 4 +- libs/mf/src/generators/mf/generator.ts | 4 +- libs/mf/src/rspack/with-federation.ts | 2 +- .../mf/src/schematics/boot-async/schematic.ts | 4 +- .../src/schematics/init-rspack/schematic.ts | 32 ++-- .../src/schematics/init-webpack/schematic.ts | 36 ++-- libs/mf/src/schematics/init/schematic.ts | 6 +- .../src/schematics/nguniversal/schematic.ts | 4 +- libs/mf/src/schematics/patch/schematic.ts | 2 +- libs/mf/src/schematics/remove/schematic.ts | 4 +- libs/mf/src/server/colors.ts | 2 +- libs/mf/src/server/mf-dev-server.ts | 2 +- libs/mf/src/server/workspace.ts | 4 +- libs/mf/src/universal/create-fetch.ts | 2 +- libs/mf/src/utils/create-config.ts | 2 +- libs/mf/src/utils/modify-entry-plugin.ts | 4 +- libs/mf/src/utils/share-utils.ts | 28 +-- libs/mf/src/utils/shared-mappings.ts | 8 +- libs/mf/src/utils/skip-list.ts | 2 +- libs/mf/src/utils/with-mf-plugin.ts | 6 +- libs/mf/tutorial/tutorial.md | 32 +--- libs/native-federation-core/README.md | 10 +- .../src/lib/config/share-utils.ts | 54 +++--- .../src/lib/config/with-native-federation.ts | 18 +- .../src/lib/core/build-adapter.d.ts | 38 ++-- .../src/lib/core/build-adapter.ts | 2 +- .../src/lib/core/build-for-federation.ts | 40 ++--- .../lib/core/bundle-exposed-and-mappings.ts | 10 +- .../src/lib/core/bundle-shared.ts | 40 ++--- .../src/lib/core/default-server-deps-list.ts | 9 +- .../src/lib/core/default-skip-list.ts | 4 +- .../src/lib/core/federation-builder.ts | 2 +- .../src/lib/core/load-federation-config.ts | 8 +- .../src/lib/core/remove-unused-deps.ts | 18 +- .../src/lib/core/write-federation-info.ts | 4 +- .../src/lib/core/write-import-map.ts | 4 +- .../src/lib/utils/build-result-map.ts | 4 +- .../src/lib/utils/get-external-imports.ts | 6 +- .../src/lib/utils/logger.d.ts | 12 +- .../src/lib/utils/logger.ts | 2 +- .../src/lib/utils/mapped-paths.d.ts | 16 +- .../src/lib/utils/mapped-paths.ts | 4 +- .../src/lib/utils/package-info.ts | 18 +- .../src/lib/utils/resolve-glob.ts | 6 +- .../src/lib/utils/resolve-wildcard-keys.ts | 2 +- .../src/lib/utils/rewrite-chunk-imports.ts | 12 +- .../src/lib/adapter.ts | 14 +- .../src/lib/node/init-node-federation.ts | 10 +- .../src/lib/utils/fstart.mjs | 170 ++++++++++-------- .../src/lib/utils/import-map-loader.js | 28 +-- .../src/lib/utils/loader-as-data-url.js | 3 +- .../src/lib/get-shared.ts | 2 +- .../src/lib/init-federation.ts | 22 +-- .../src/lib/load-remote-module.ts | 14 +- .../src/lib/utils/add-import-map.ts | 2 +- libs/native-federation/README.md | 13 +- libs/native-federation/post-build.js | 2 +- .../src/builders/build/builder.ts | 40 ++--- .../build/federation-build-notifier.ts | 16 +- .../src/executors/build/executor.ts | 2 +- .../generators/native-federation/generator.ts | 6 +- .../src/patch-angular-build.ts | 2 +- .../src/plugin/dev-externals-mixin.ts | 2 +- libs/native-federation/src/plugin/index.ts | 6 +- .../src/schematics/appbuilder/schematic.ts | 20 +-- .../src/schematics/init/schematic.ts | 39 ++-- .../src/schematics/remove/schematic.ts | 20 +-- .../src/tools/fstart-as-data-url.ts | 3 +- .../src/utils/angular-esbuild-adapter.ts | 45 +++-- .../src/utils/angular-locales.ts | 2 +- .../src/utils/create-compiler-options.ts | 2 +- libs/native-federation/src/utils/i18n.ts | 16 +- .../native-federation/src/utils/mem-resuts.ts | 5 +- .../src/utils/patch-angular-build.ts | 4 +- .../src/utils/shared-mappings-plugin.ts | 2 +- .../src/utils/updateIndexHtml.ts | 12 +- migration-guide-14.md | 9 +- tools/scripts/publish-utils.mjs | 14 +- tools/scripts/publish.mjs | 2 +- tools/scripts/start-local-registry.ts | 2 +- 95 files changed, 781 insertions(+), 624 deletions(-) diff --git a/apps/mfe1/src/app/nx-welcome.component.ts b/apps/mfe1/src/app/nx-welcome.component.ts index 6d7ebbcd..95134e5b 100644 --- a/apps/mfe1/src/app/nx-welcome.component.ts +++ b/apps/mfe1/src/app/nx-welcome.component.ts @@ -15,9 +15,20 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';