@nx/angular 19.4.3 → 19.5.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +79 -0
- package/ng-package.json +1 -1
- package/package.json +10 -10
- package/plugins/component-testing.js +1 -2
- package/src/builders/dev-server/dev-server.impl.js +1 -2
- package/src/builders/dev-server/lib/normalize-options.js +1 -2
- package/src/builders/dev-server/lib/validate-options.js +5 -2
- package/src/builders/dev-server/schema.d.ts +1 -0
- package/src/builders/dev-server/schema.json +11 -0
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +1 -2
- package/src/builders/utilities/buildable-libs.js +1 -2
- package/src/builders/utilities/module-federation.js +4 -5
- package/src/builders/utilities/webpack.js +3 -4
- package/src/builders/webpack-browser/webpack-browser.impl.js +1 -2
- package/src/builders/webpack-server/webpack-server.impl.js +1 -2
- package/src/executors/application/application.impl.js +1 -1
- package/src/executors/application/utils/validate-options.js +1 -2
- package/src/executors/browser-esbuild/browser-esbuild.impl.js +1 -1
- package/src/executors/delegate-build/delegate-build.impl.js +1 -2
- package/src/executors/extract-i18n/extract-i18n.impl.js +1 -1
- package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/normalize-options.js +1 -2
- package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +1 -2
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.js +1 -2
- package/src/executors/package/package.impl.js +2 -2
- package/src/executors/utilities/angular-version-utils.js +2 -3
- package/src/executors/utilities/buildable-libs.js +1 -2
- package/src/executors/utilities/esbuild-extensions.js +3 -4
- package/src/executors/utilities/module-loader.js +2 -3
- package/src/executors/utilities/ng-packagr/tailwindcss.js +3 -4
- package/src/executors/utilities/patch-builder-context.js +1 -2
- package/src/executors/utilities/typescript.js +1 -2
- package/src/generators/add-linting/add-linting.js +1 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -2
- package/src/generators/add-linting/lib/buildable-project.js +1 -2
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +24 -24
- package/src/generators/add-linting/lib/create-eslint-configuration.js +2 -2
- package/src/generators/application/application.js +2 -3
- package/src/generators/application/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/lib/add-e2e.js +1 -2
- package/src/generators/application/lib/add-linting.js +1 -2
- package/src/generators/application/lib/add-proxy-config.js +1 -2
- package/src/generators/application/lib/add-unit-test-runner.js +1 -2
- package/src/generators/application/lib/create-files.js +8 -5
- package/src/generators/application/lib/create-project.js +1 -2
- package/src/generators/application/lib/enable-strict-type-checking.js +1 -2
- package/src/generators/application/lib/normalize-options.js +1 -2
- package/src/generators/application/lib/set-app-strict-default.js +1 -2
- package/src/generators/application/lib/set-generator-defaults.js +1 -2
- package/src/generators/application/lib/update-editor-tsconfig.js +1 -2
- package/src/generators/component/component.js +2 -3
- package/src/generators/component/lib/component.js +1 -2
- package/src/generators/component/lib/module.js +1 -2
- package/src/generators/component/lib/normalize-options.js +1 -2
- package/src/generators/component/lib/set-generator-defaults.js +1 -2
- package/src/generators/component-cypress-spec/component-cypress-spec.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-args-default-value.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-component-selector.js +1 -2
- package/src/generators/component-story/component-story.js +1 -2
- package/src/generators/component-test/component-test.js +1 -2
- package/src/generators/convert-to-application-executor/convert-to-application-executor.js +1 -2
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +1 -2
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +1 -2
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +3 -4
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +1 -2
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +1 -2
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +2 -3
- package/src/generators/directive/directive.js +1 -2
- package/src/generators/directive/lib/normalize-options.js +1 -2
- package/src/generators/federate-module/federate-module.js +1 -2
- package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-exposes.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-ts-config.js +1 -2
- package/src/generators/federate-module/lib/add-remote.js +1 -2
- package/src/generators/federate-module/lib/check-remote-exists.js +1 -2
- package/src/generators/host/host.js +2 -3
- package/src/generators/host/lib/update-ssr-setup.js +7 -2
- package/src/generators/init/init.js +1 -2
- package/src/generators/library/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/library/lib/add-children.js +1 -2
- package/src/generators/library/lib/add-load-children.js +1 -2
- package/src/generators/library/lib/add-module.js +1 -2
- package/src/generators/library/lib/add-project.js +1 -2
- package/src/generators/library/lib/add-standalone-component.js +1 -2
- package/src/generators/library/lib/create-files.js +3 -2
- package/src/generators/library/lib/enable-strict-type-checking.js +2 -3
- package/src/generators/library/lib/normalize-options.js +1 -2
- package/src/generators/library/lib/set-generator-defaults.js +1 -2
- package/src/generators/library/lib/update-lib-package-npm-scope.js +1 -2
- package/src/generators/library/lib/update-tsconfig.js +1 -2
- package/src/generators/library/library.js +2 -3
- package/src/generators/library-secondary-entry-point/lib/add-files.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/normalize-options.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +1 -2
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +1 -2
- package/src/generators/move/lib/update-module-name.js +1 -2
- package/src/generators/move/lib/update-ng-package.js +1 -2
- package/src/generators/move/lib/update-secondary-entry-points.js +1 -2
- package/src/generators/move/move-impl.js +1 -2
- package/src/generators/move/move.js +2 -3
- package/src/generators/ng-add/migrate-from-angular-cli.js +1 -2
- package/src/generators/ng-add/ng-add.js +1 -2
- package/src/generators/ng-add/utilities/dependencies.js +1 -2
- package/src/generators/ng-add/utilities/format-files-task.js +1 -2
- package/src/generators/ng-add/utilities/projects.js +2 -3
- package/src/generators/ng-add/utilities/validation-logging.js +2 -3
- package/src/generators/ng-add/utilities/workspace.js +13 -14
- package/src/generators/ngrx/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx/lib/add-imports-to-module.js +1 -2
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx/lib/generate-files.js +1 -2
- package/src/generators/ngrx/lib/normalize-options.js +1 -2
- package/src/generators/ngrx/lib/validate-options.js +1 -2
- package/src/generators/ngrx/ngrx.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-feature-store/lib/generate-files.js +1 -2
- package/src/generators/ngrx-feature-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-feature-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-feature-store/ngrx-feature-store.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-root-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-root-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-root-store/ngrx-root-store.js +1 -2
- package/src/generators/pipe/lib/normalize-options.js +1 -2
- package/src/generators/pipe/pipe.js +1 -2
- package/src/generators/remote/lib/find-next-available-port.js +1 -2
- package/src/generators/remote/lib/update-ssr-setup.js +7 -2
- package/src/generators/remote/remote.js +2 -3
- package/src/generators/scam/lib/convert-component-to-scam.js +1 -2
- package/src/generators/scam/lib/normalize-options.js +1 -2
- package/src/generators/scam/scam.js +1 -2
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +1 -2
- package/src/generators/scam-directive/lib/normalize-options.js +1 -2
- package/src/generators/scam-directive/scam-directive.js +1 -2
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +1 -2
- package/src/generators/scam-pipe/lib/normalize-options.js +1 -2
- package/src/generators/scam-pipe/scam-pipe.js +1 -2
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-target-project.js +1 -2
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +1 -2
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +1 -2
- package/src/generators/scam-to-standalone/scam-to-standalone.js +1 -2
- package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +8 -5
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-entry.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-to-host.js +3 -4
- package/src/generators/setup-mf/lib/change-build-target.js +1 -2
- package/src/generators/setup-mf/lib/fix-bootstrap.js +1 -2
- package/src/generators/setup-mf/lib/generate-config.js +1 -2
- package/src/generators/setup-mf/lib/get-remotes-with-ports.js +1 -2
- package/src/generators/setup-mf/lib/normalize-options.js +1 -2
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +1 -2
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +1 -2
- package/src/generators/setup-mf/lib/setup-serve-target.js +1 -2
- package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +1 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +2 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.js +5 -10
- package/src/generators/setup-mf/lib/update-tsconfig.js +1 -2
- package/src/generators/setup-mf/setup-mf.js +10 -4
- package/src/generators/setup-ssr/lib/add-dependencies.js +1 -2
- package/src/generators/setup-ssr/lib/add-hydration.js +1 -2
- package/src/generators/setup-ssr/lib/add-server-file.js +1 -2
- package/src/generators/setup-ssr/lib/generate-files.js +1 -2
- package/src/generators/setup-ssr/lib/generate-server-ts-config.js +2 -3
- package/src/generators/setup-ssr/lib/normalize-options.js +1 -2
- package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +1 -2
- package/src/generators/setup-ssr/lib/update-project-config.js +2 -3
- package/src/generators/setup-ssr/lib/validate-options.js +1 -2
- package/src/generators/setup-ssr/setup-ssr.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +1 -2
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +1 -2
- package/src/generators/setup-tailwind/lib/normalize-options.js +1 -2
- package/src/generators/setup-tailwind/lib/update-application-styles.js +1 -2
- package/src/generators/setup-tailwind/setup-tailwind.js +1 -2
- package/src/generators/stories/lib/get-e2e-project.js +1 -2
- package/src/generators/stories/stories.js +1 -2
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-stories.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -2
- package/src/generators/storybook-configuration/lib/validate-options.js +1 -2
- package/src/generators/storybook-configuration/storybook-configuration.js +1 -2
- package/src/generators/utils/add-jest.js +1 -2
- package/src/generators/utils/add-mf-env-to-inputs.js +1 -2
- package/src/generators/utils/dependencies.js +1 -2
- package/src/generators/utils/ensure-angular-dependencies.js +1 -2
- package/src/generators/utils/entry-point.js +1 -2
- package/src/generators/utils/export-scam.js +1 -2
- package/src/generators/utils/find-module.js +2 -3
- package/src/generators/utils/insert-ngmodule-import.js +2 -3
- package/src/generators/utils/path.js +1 -2
- package/src/generators/utils/project.js +1 -2
- package/src/generators/utils/selector.js +2 -3
- package/src/generators/utils/storybook-ast/component-info.js +3 -4
- package/src/generators/utils/storybook-ast/entry-point.js +1 -2
- package/src/generators/utils/storybook-ast/module-info.js +2 -3
- package/src/generators/utils/storybook-ast/storybook-inputs.js +4 -5
- package/src/generators/utils/storybook-ast/tree-utilities.js +1 -2
- package/src/generators/utils/testing.js +5 -6
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +1 -2
- package/src/generators/utils/update-project-root-tsconfig.js +2 -2
- package/src/generators/utils/validations.js +1 -2
- package/src/generators/utils/version-utils.js +6 -7
- package/src/generators/web-worker/lib/add-snippet.js +1 -2
- package/src/generators/web-worker/lib/normalize-options.js +1 -2
- package/src/generators/web-worker/web-worker.js +1 -2
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +1 -1
- package/src/migrations/update-14-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +1 -1
- package/src/migrations/update-14-2-0/update-ngcc-target.js +1 -1
- package/src/migrations/update-14-2-0/update-router-initial-navigation.js +6 -3
- package/src/migrations/update-14-2-0/update-tsconfig-target.js +2 -2
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +4 -5
- package/src/migrations/update-14-5-2/update-angular-cli.js +1 -1
- package/src/migrations/update-14-6-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-8-0/rename-webpack-server.js +1 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.js +1 -1
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +1 -1
- package/src/migrations/update-15-2-0/remove-browserlist-config.js +1 -1
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js +1 -1
- package/src/migrations/update-15-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-2-0/update-karma-main-file.js +1 -1
- package/src/migrations/update-15-2-0/update-typescript-target.js +1 -1
- package/src/migrations/update-15-2-0/update-workspace-config.js +1 -1
- package/src/migrations/update-15-5-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-7-0/install-required-packages.js +1 -1
- package/src/migrations/update-15-8-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-9-0/update-file-server-executor.js +1 -1
- package/src/migrations/update-15-9-0/update-testing-tsconfig.js +1 -2
- package/src/migrations/update-16-0-0/remove-karma-defaults.js +1 -1
- package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.js +1 -1
- package/src/migrations/update-16-0-0/remove-protractor-defaults.js +1 -1
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
- package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.js +1 -1
- package/src/migrations/update-16-1-0/remove-ngcc-invocation.js +1 -1
- package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.js +1 -1
- package/src/migrations/update-16-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-1-0/update-server-executor-config.js +1 -1
- package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.js +1 -1
- package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.js +1 -1
- package/src/migrations/update-16-4-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +1 -1
- package/src/migrations/update-16-7-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/browser-target-to-build-target.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +1 -1
- package/src/migrations/update-17-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +1 -1
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +1 -1
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +1 -1
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +1 -1
- package/src/migrations/update-17-3-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +1 -1
- package/src/migrations/update-18-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +1 -1
- package/src/migrations/update-18-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +2 -2
- package/src/migrations/update-19-5-0/update-angular-cli.d.ts +3 -0
- package/src/migrations/update-19-5-0/update-angular-cli.js +23 -0
- package/src/migrations/utils/projects.js +1 -2
- package/src/utils/backward-compatible-versions.js +4 -2
- package/src/utils/cli-config-utils.js +1 -2
- package/src/utils/get-mf-projects.js +1 -2
- package/src/utils/mf/utils.js +4 -4
- package/src/utils/mf/with-module-federation-ssr.d.ts +2 -2
- package/src/utils/mf/with-module-federation-ssr.js +6 -3
- package/src/utils/mf/with-module-federation.d.ts +2 -2
- package/src/utils/mf/with-module-federation.js +8 -6
- package/src/utils/nx-devkit/ast-utils.js +23 -24
- package/src/utils/nx-devkit/route-utils.js +2 -3
- package/src/utils/nx-devkit/testing.js +4 -5
- package/src/utils/targets.js +1 -2
- package/src/utils/version-utils.js +2 -3
- package/src/utils/versions.d.ts +6 -5
- package/src/utils/versions.js +7 -6
- package/tailwind.js +1 -2
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
6
|
const executors = [
|
@@ -23,4 +24,3 @@ async function default_1(tree) {
|
|
23
24
|
});
|
24
25
|
await (0, devkit_1.formatFiles)(tree);
|
25
26
|
}
|
26
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
5
6
|
const file_change_recorder_1 = require("../../utils/file-change-recorder");
|
@@ -39,7 +40,6 @@ async function default_1(tree) {
|
|
39
40
|
await (0, devkit_1.formatFiles)(tree);
|
40
41
|
}
|
41
42
|
}
|
42
|
-
exports.default = default_1;
|
43
43
|
function replaceDataPersistenceInFile(tree, file) {
|
44
44
|
const fileContents = tree.read(file, 'utf-8');
|
45
45
|
const fileAst = tsquery.ast(fileContents);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
// https://github.com/angular-eslint/angular-eslint/blob/24a4de54a8991c93924abf1dfb78b132a6269aef/packages/schematics/src/migrations/update-16-0-0/update-16-0-0.ts
|
5
6
|
async function default_1(tree) {
|
@@ -19,7 +20,6 @@ async function default_1(tree) {
|
|
19
20
|
});
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
23
23
|
function modifyRules(parent) {
|
24
24
|
if (!parent.rules) {
|
25
25
|
return;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~16.1.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executors = new Set([
|
5
6
|
'@nx/angular:ng-packagr-lite',
|
@@ -31,4 +32,3 @@ async function default_1(tree) {
|
|
31
32
|
}
|
32
33
|
await (0, devkit_1.formatFiles)(tree);
|
33
34
|
}
|
34
|
-
exports.default = default_1;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~16.2.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.executors = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
6
7
|
exports.executors = [
|
@@ -41,7 +42,6 @@ async function default_1(tree) {
|
|
41
42
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
42
43
|
await (0, devkit_1.formatFiles)(tree);
|
43
44
|
}
|
44
|
-
exports.default = default_1;
|
45
45
|
function updateConfig(config) {
|
46
46
|
if (config && config.browserTarget) {
|
47
47
|
config.buildTarget ??= config.browserTarget;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function default_1(tree) {
|
5
6
|
const projects = (0, devkit_1.getProjects)(tree);
|
@@ -48,7 +49,6 @@ async function default_1(tree) {
|
|
48
49
|
(0, devkit_1.removeDependenciesFromPackageJson)(tree, ['@nguniversal/builders'], ['@nguniversal/builders']);
|
49
50
|
await (0, devkit_1.formatFiles)(tree);
|
50
51
|
}
|
51
|
-
exports.default = default_1;
|
52
52
|
function* allTargetOptions(target) {
|
53
53
|
if (target.options) {
|
54
54
|
yield [undefined, target.options];
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const path_1 = require("path");
|
5
6
|
const version_utils_1 = require("../../generators/utils/version-utils");
|
@@ -91,7 +92,6 @@ async function default_1(tree) {
|
|
91
92
|
}, {});
|
92
93
|
await (0, devkit_1.formatFiles)(tree);
|
93
94
|
}
|
94
|
-
exports.default = default_1;
|
95
95
|
const TOKENS_FILE_CONTENT = `
|
96
96
|
import { InjectionToken } from '@angular/core';
|
97
97
|
import { Request, Response } from 'express';
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~17.0.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const projects_1 = require("../utils/projects");
|
5
6
|
async function default_1(tree) {
|
@@ -34,4 +35,3 @@ async function default_1(tree) {
|
|
34
35
|
}
|
35
36
|
await (0, devkit_1.formatFiles)(tree);
|
36
37
|
}
|
37
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function default_1(tree) {
|
5
6
|
const projects = (0, devkit_1.getProjects)(tree);
|
@@ -37,4 +38,3 @@ async function default_1(tree) {
|
|
37
38
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
38
39
|
await (0, devkit_1.formatFiles)(tree);
|
39
40
|
}
|
40
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const version_utils_1 = require("../../generators/utils/version-utils");
|
5
6
|
async function default_1(tree) {
|
@@ -23,4 +24,3 @@ async function default_1(tree) {
|
|
23
24
|
}
|
24
25
|
}
|
25
26
|
}
|
26
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const version_utils_1 = require("../../generators/utils/version-utils");
|
5
6
|
async function default_1(tree) {
|
@@ -23,4 +24,3 @@ async function default_1(tree) {
|
|
23
24
|
}
|
24
25
|
}
|
25
26
|
}
|
26
|
-
exports.default = default_1;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~17.1.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const add_mf_env_to_inputs_1 = require("../../generators/utils/add-mf-env-to-inputs");
|
5
6
|
async function default_1(tree) {
|
@@ -9,7 +10,6 @@ async function default_1(tree) {
|
|
9
10
|
(0, add_mf_env_to_inputs_1.addMfEnvToTargetDefaultInputs)(tree);
|
10
11
|
await (0, devkit_1.formatFiles)(tree);
|
11
12
|
}
|
12
|
-
exports.default = default_1;
|
13
13
|
function isWebpackBrowserUsed(tree) {
|
14
14
|
const projects = (0, devkit_1.getProjects)(tree);
|
15
15
|
for (const project of projects.values()) {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~17.2.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function default_1(tree) {
|
5
6
|
if (!isWebpackBrowserUsed(tree)) {
|
@@ -8,7 +9,6 @@ async function default_1(tree) {
|
|
8
9
|
ensureTargetDefaultsContainProductionInputs(tree);
|
9
10
|
await (0, devkit_1.formatFiles)(tree);
|
10
11
|
}
|
11
|
-
exports.default = default_1;
|
12
12
|
function ensureTargetDefaultsContainProductionInputs(tree) {
|
13
13
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
14
14
|
const webpackExecutor = '@nx/angular:webpack-browser';
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~17.3.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~18.0.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.typescriptEslintUtilsVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const version_utils_1 = require("../../generators/utils/version-utils");
|
6
|
-
exports.typescriptEslintUtilsVersion = '^
|
7
|
+
exports.typescriptEslintUtilsVersion = '^7.16.0';
|
7
8
|
async function default_1(tree) {
|
8
9
|
if ((0, version_utils_1.getInstalledPackageVersion)(tree, '@typescript-eslint/utils')) {
|
9
10
|
return;
|
@@ -16,4 +17,3 @@ async function default_1(tree) {
|
|
16
17
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@typescript-eslint/utils': exports.typescriptEslintUtilsVersion });
|
17
18
|
await (0, devkit_1.formatFiles)(tree);
|
18
19
|
}
|
19
|
-
exports.default = default_1;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
6
|
+
exports.angularCliVersion = '~18.1.0';
|
7
|
+
async function default_1(tree) {
|
8
|
+
let shouldFormat = false;
|
9
|
+
(0, devkit_1.updateJson)(tree, 'package.json', (json) => {
|
10
|
+
if (json.devDependencies?.['@angular/cli']) {
|
11
|
+
json.devDependencies['@angular/cli'] = exports.angularCliVersion;
|
12
|
+
shouldFormat = true;
|
13
|
+
}
|
14
|
+
else if (json.dependencies?.['@angular/cli']) {
|
15
|
+
json.dependencies['@angular/cli'] = exports.angularCliVersion;
|
16
|
+
shouldFormat = true;
|
17
|
+
}
|
18
|
+
return json;
|
19
|
+
});
|
20
|
+
if (shouldFormat) {
|
21
|
+
await (0, devkit_1.formatFiles)(tree);
|
22
|
+
}
|
23
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getProjectsFilteredByDependencies =
|
3
|
+
exports.getProjectsFilteredByDependencies = getProjectsFilteredByDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
async function getProjectsFilteredByDependencies(tree, dependencies) {
|
6
6
|
const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
|
@@ -12,4 +12,3 @@ async function getProjectsFilteredByDependencies(tree, dependencies) {
|
|
12
12
|
graphNode: projectGraph.nodes[projectName],
|
13
13
|
}));
|
14
14
|
}
|
15
|
-
exports.getProjectsFilteredByDependencies = getProjectsFilteredByDependencies;
|
@@ -17,7 +17,8 @@ exports.backwardCompatibleVersions = {
|
|
17
17
|
expressVersion: '~4.18.2',
|
18
18
|
typesExpressVersion: '4.17.14',
|
19
19
|
browserSyncVersion: '^3.0.0',
|
20
|
-
moduleFederationNodeVersion: '~
|
20
|
+
moduleFederationNodeVersion: '~2.3.0',
|
21
|
+
moduleFederationEnhancedVersion: '~0.2.3',
|
21
22
|
angularEslintVersion: '~16.0.0',
|
22
23
|
tailwindVersion: '^3.0.2',
|
23
24
|
postcssVersion: '^8.4.5',
|
@@ -43,7 +44,8 @@ exports.backwardCompatibleVersions = {
|
|
43
44
|
expressVersion: '~4.18.2',
|
44
45
|
typesExpressVersion: '4.17.14',
|
45
46
|
browserSyncVersion: '^3.0.0',
|
46
|
-
moduleFederationNodeVersion: '~
|
47
|
+
moduleFederationNodeVersion: '~2.3.0',
|
48
|
+
moduleFederationEnhancedVersion: '~0.2.3',
|
47
49
|
angularEslintVersion: '~17.3.0',
|
48
50
|
tailwindVersion: '^3.0.2',
|
49
51
|
postcssVersion: '^8.4.5',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.replaceAppNameWithPath =
|
3
|
+
exports.replaceAppNameWithPath = replaceAppNameWithPath;
|
4
4
|
function replaceAppNameWithPath(node, appName, root) {
|
5
5
|
if (typeof node === 'string') {
|
6
6
|
const matchPattern = new RegExp(`([^a-z0-9]*(${appName}))|((${appName})[^a-z0-9:]*)`, 'gi');
|
@@ -42,4 +42,3 @@ function replaceAppNameWithPath(node, appName, root) {
|
|
42
42
|
return node;
|
43
43
|
}
|
44
44
|
}
|
45
|
-
exports.replaceAppNameWithPath = replaceAppNameWithPath;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getMFProjects =
|
3
|
+
exports.getMFProjects = getMFProjects;
|
4
4
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
5
|
function _getMfProjects(tree, CUSTOM_WEBPACK_OPTION, MODULE_FEDERATION_IDENTIFIER, projects) {
|
6
6
|
return (opts, projectName) => {
|
@@ -31,4 +31,3 @@ function getMFProjects(tree, { legacy } = { legacy: false }) {
|
|
31
31
|
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/angular:webpack-browser', _getMfProjects(tree, CUSTOM_WEBPACK_OPTION, MODULE_FEDERATION_IDENTIFIER, projects));
|
32
32
|
return projects;
|
33
33
|
}
|
34
|
-
exports.getMFProjects = getMFProjects;
|
package/src/utils/mf/utils.js
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.DEFAULT_ANGULAR_PACKAGES_TO_SHARE = exports.DEFAULT_NPM_PACKAGES_TO_AVOID = void 0;
|
4
|
+
exports.applyDefaultEagerPackages = applyDefaultEagerPackages;
|
5
|
+
exports.getFunctionDeterminateRemoteUrl = getFunctionDeterminateRemoteUrl;
|
6
|
+
exports.getModuleFederationConfig = getModuleFederationConfig;
|
4
7
|
const module_federation_1 = require("@nx/webpack/src/utils/module-federation");
|
5
8
|
const devkit_1 = require("@nx/devkit");
|
6
9
|
const project_graph_1 = require("nx/src/project-graph/project-graph");
|
@@ -16,7 +19,6 @@ function applyDefaultEagerPackages(sharedConfig) {
|
|
16
19
|
sharedConfig[pkg] = { ...sharedConfig[pkg], eager: true };
|
17
20
|
}
|
18
21
|
}
|
19
|
-
exports.applyDefaultEagerPackages = applyDefaultEagerPackages;
|
20
22
|
exports.DEFAULT_NPM_PACKAGES_TO_AVOID = [
|
21
23
|
'zone.js',
|
22
24
|
'@nx/angular/mf',
|
@@ -56,7 +58,6 @@ function getFunctionDeterminateRemoteUrl(isServer = false) {
|
|
56
58
|
return `${host.endsWith('/') ? host.slice(0, -1) : host}:${port}/${remoteEntry}`;
|
57
59
|
};
|
58
60
|
}
|
59
|
-
exports.getFunctionDeterminateRemoteUrl = getFunctionDeterminateRemoteUrl;
|
60
61
|
async function getModuleFederationConfig(mfConfig, options = { isServer: false }) {
|
61
62
|
let projectGraph;
|
62
63
|
try {
|
@@ -98,4 +99,3 @@ async function getModuleFederationConfig(mfConfig, options = { isServer: false }
|
|
98
99
|
: mapRemotesFunction(mfConfig.remotes, 'mjs', determineRemoteUrlFn);
|
99
100
|
return { sharedLibraries, sharedDependencies, mappedRemotes };
|
100
101
|
}
|
101
|
-
exports.getModuleFederationConfig = getModuleFederationConfig;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ModuleFederationConfig } from '@nx/webpack/src/utils/module-federation';
|
2
|
-
export declare function withModuleFederationForSSR(options: ModuleFederationConfig): Promise<(config: any) => any>;
|
1
|
+
import type { ModuleFederationConfig, NxModuleFederationConfigOverride } from '@nx/webpack/src/utils/module-federation';
|
2
|
+
export declare function withModuleFederationForSSR(options: ModuleFederationConfig, configOverride?: NxModuleFederationConfigOverride): Promise<(config: any) => any>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withModuleFederationForSSR =
|
3
|
+
exports.withModuleFederationForSSR = withModuleFederationForSSR;
|
4
4
|
const utils_1 = require("./utils");
|
5
|
-
async function withModuleFederationForSSR(options) {
|
5
|
+
async function withModuleFederationForSSR(options, configOverride) {
|
6
6
|
if (global.NX_GRAPH_CREATION) {
|
7
7
|
return (config) => config;
|
8
8
|
}
|
@@ -41,9 +41,12 @@ async function withModuleFederationForSSR(options) {
|
|
41
41
|
type: 'commonjs-module',
|
42
42
|
},
|
43
43
|
isServer: true,
|
44
|
+
/**
|
45
|
+
* Apply user-defined config override
|
46
|
+
*/
|
47
|
+
...(configOverride ? configOverride : {}),
|
44
48
|
}, {}),
|
45
49
|
sharedLibraries.getReplacementPlugin(),
|
46
50
|
],
|
47
51
|
});
|
48
52
|
}
|
49
|
-
exports.withModuleFederationForSSR = withModuleFederationForSSR;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ModuleFederationConfig } from '@nx/webpack/src/utils/module-federation';
|
2
|
-
export declare function withModuleFederation(options: ModuleFederationConfig): Promise<(config: any) => any>;
|
1
|
+
import type { ModuleFederationConfig, NxModuleFederationConfigOverride } from '@nx/webpack/src/utils/module-federation';
|
2
|
+
export declare function withModuleFederation(options: ModuleFederationConfig, configOverride?: NxModuleFederationConfigOverride): Promise<(config: any) => any>;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withModuleFederation =
|
4
|
-
const tslib_1 = require("tslib");
|
3
|
+
exports.withModuleFederation = withModuleFederation;
|
5
4
|
const utils_1 = require("./utils");
|
6
|
-
const
|
7
|
-
async function withModuleFederation(options) {
|
5
|
+
const webpack_1 = require("@module-federation/enhanced/webpack");
|
6
|
+
async function withModuleFederation(options, configOverride) {
|
8
7
|
if (global.NX_GRAPH_CREATION) {
|
9
8
|
return (config) => config;
|
10
9
|
}
|
@@ -33,7 +32,7 @@ async function withModuleFederation(options) {
|
|
33
32
|
},
|
34
33
|
plugins: [
|
35
34
|
...(config.plugins ?? []),
|
36
|
-
new
|
35
|
+
new webpack_1.ModuleFederationPlugin({
|
37
36
|
name: options.name,
|
38
37
|
filename: 'remoteEntry.mjs',
|
39
38
|
exposes: options.exposes,
|
@@ -44,9 +43,12 @@ async function withModuleFederation(options) {
|
|
44
43
|
library: {
|
45
44
|
type: 'module',
|
46
45
|
},
|
46
|
+
/**
|
47
|
+
* Apply user-defined config override
|
48
|
+
*/
|
49
|
+
...(configOverride ? configOverride : {}),
|
47
50
|
}),
|
48
51
|
sharedLibraries.getReplacementPlugin(),
|
49
52
|
],
|
50
53
|
});
|
51
54
|
}
|
52
|
-
exports.withModuleFederation = withModuleFederation;
|