@nrwl/angular 15.8.4 → 15.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators.d.ts +0 -4
- package/generators.js +0 -4
- package/generators.js.map +1 -1
- package/generators.json +0 -40
- package/migrations.json +104 -1124
- package/package.json +10 -10
- package/plugins/component-testing.d.ts +1 -1
- package/src/builders/utilities/buildable-libs.d.ts +1 -1
- package/src/builders/utilities/buildable-libs.js +1 -1
- package/src/builders/utilities/buildable-libs.js.map +1 -1
- package/src/builders/webpack-browser/schema.d.ts +9 -0
- package/src/builders/webpack-browser/schema.json +1 -1
- package/src/builders/webpack-browser/validate-options.d.ts +2 -0
- package/src/builders/webpack-browser/validate-options.js +41 -0
- package/src/builders/webpack-browser/validate-options.js.map +1 -0
- package/src/builders/webpack-browser/webpack-browser.impl.d.ts +1 -7
- package/src/builders/webpack-browser/webpack-browser.impl.js +2 -9
- package/src/builders/webpack-browser/webpack-browser.impl.js.map +1 -1
- package/src/builders/webpack-server/schema.json +5 -0
- package/src/builders/webpack-server/validate-options.d.ts +2 -0
- package/src/builders/webpack-server/validate-options.js +34 -0
- package/src/builders/webpack-server/validate-options.js.map +1 -0
- package/src/builders/webpack-server/webpack-server.impl.js +5 -14
- package/src/builders/webpack-server/webpack-server.impl.js.map +1 -1
- package/src/executors/delegate-build/delegate-build.impl.js +1 -1
- package/src/executors/delegate-build/delegate-build.impl.js.map +1 -1
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +1 -1
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js.map +1 -1
- package/src/executors/ng-packagr-lite/schema.json +1 -1
- package/src/executors/package/package.impl.d.ts +1 -1
- package/src/executors/package/package.impl.js +1 -1
- package/src/executors/package/package.impl.js.map +1 -1
- package/src/executors/package/schema.json +1 -1
- package/src/executors/utilities/angular-version-utils.d.ts +1 -2
- package/src/generators/add-linting/add-linting.js +1 -2
- package/src/generators/add-linting/add-linting.js.map +1 -1
- package/src/generators/add-linting/angular-v14/add-linting.js +1 -2
- package/src/generators/add-linting/angular-v14/add-linting.js.map +1 -1
- package/src/generators/add-linting/angular-v14/lib/create-eslint-configuration.js +5 -5
- package/src/generators/add-linting/angular-v14/lib/create-eslint-configuration.js.map +1 -1
- package/src/generators/add-linting/lib/create-eslint-configuration.js +5 -5
- package/src/generators/add-linting/lib/create-eslint-configuration.js.map +1 -1
- package/src/generators/application/angular-v14/lib/add-unit-test-runner.js +0 -7
- package/src/generators/application/angular-v14/lib/add-unit-test-runner.js.map +1 -1
- package/src/generators/application/angular-v14/lib/root-router-config.js +5 -5
- package/src/generators/application/angular-v14/lib/root-router-config.js.map +1 -1
- package/src/generators/application/angular-v14/lib/update-app-component-template.js +4 -4
- package/src/generators/application/angular-v14/lib/update-app-component-template.js.map +1 -1
- package/src/generators/application/angular-v14/lib/update-component-spec.js +6 -6
- package/src/generators/application/angular-v14/lib/update-component-spec.js.map +1 -1
- package/src/generators/application/angular-v14/lib/update-config-files.js +1 -1
- package/src/generators/application/angular-v14/lib/update-config-files.js.map +1 -1
- package/src/generators/application/angular-v14/lib/update-nx-component-template.js +5 -5
- package/src/generators/application/angular-v14/lib/update-nx-component-template.js.map +1 -1
- package/src/generators/application/lib/add-unit-test-runner.js +0 -7
- package/src/generators/application/lib/add-unit-test-runner.js.map +1 -1
- package/src/generators/application/lib/root-router-config.js +5 -5
- package/src/generators/application/lib/root-router-config.js.map +1 -1
- package/src/generators/application/lib/update-app-component-template.js +4 -4
- package/src/generators/application/lib/update-app-component-template.js.map +1 -1
- package/src/generators/application/lib/update-component-spec.js +6 -6
- package/src/generators/application/lib/update-component-spec.js.map +1 -1
- package/src/generators/application/lib/update-config-files.js +1 -1
- package/src/generators/application/lib/update-config-files.js.map +1 -1
- package/src/generators/application/lib/update-nx-component-template.js +5 -5
- package/src/generators/application/lib/update-nx-component-template.js.map +1 -1
- package/src/generators/application/schema.json +1 -1
- package/src/generators/component/schema.json +2 -3
- package/src/generators/host/host.js +1 -2
- package/src/generators/host/host.js.map +1 -1
- package/src/generators/host/schema.json +3 -2
- package/src/generators/init/angular-v14/init.js +1 -7
- package/src/generators/init/angular-v14/init.js.map +1 -1
- package/src/generators/init/init.js +1 -7
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/init/schema.json +1 -1
- package/src/generators/library/lib/add-children.js +4 -4
- package/src/generators/library/lib/add-children.js.map +1 -1
- package/src/generators/library/lib/add-lazy-loaded-router-configuration.js +5 -5
- package/src/generators/library/lib/add-lazy-loaded-router-configuration.js.map +1 -1
- package/src/generators/library/lib/add-router-configuration.js +5 -5
- package/src/generators/library/lib/add-router-configuration.js.map +1 -1
- package/src/generators/library/lib/update-project.js +1 -1
- package/src/generators/library/lib/update-project.js.map +1 -1
- package/src/generators/library/library.js +0 -7
- package/src/generators/library/library.js.map +1 -1
- package/src/generators/library/schema.json +1 -2
- package/src/generators/move/lib/update-module-name.js +2 -2
- package/src/generators/move/lib/update-module-name.js.map +1 -1
- package/src/generators/move/lib/update-ng-package.js +2 -2
- package/src/generators/move/lib/update-ng-package.js.map +1 -1
- package/src/generators/ng-add/migrate-from-angular-cli.js +36 -53
- package/src/generators/ng-add/migrate-from-angular-cli.js.map +1 -1
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js +3 -4
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js.map +1 -1
- package/src/generators/ng-add/schema.d.ts +0 -1
- package/src/generators/ng-add/schema.json +0 -6
- package/src/generators/ng-add/utilities/index.d.ts +0 -1
- package/src/generators/ng-add/utilities/index.js +0 -1
- package/src/generators/ng-add/utilities/index.js.map +1 -1
- package/src/generators/ng-add/utilities/projects.d.ts +0 -1
- package/src/generators/ng-add/utilities/projects.js +1 -12
- package/src/generators/ng-add/utilities/projects.js.map +1 -1
- package/src/generators/ng-add/utilities/workspace.d.ts +0 -1
- package/src/generators/ng-add/utilities/workspace.js +4 -18
- package/src/generators/ng-add/utilities/workspace.js.map +1 -1
- package/src/generators/ngrx/lib/add-exports-barrel.js +7 -7
- package/src/generators/ngrx/lib/add-exports-barrel.js.map +1 -1
- package/src/generators/ngrx/lib/add-imports-to-module.js +14 -14
- package/src/generators/ngrx/lib/add-imports-to-module.js.map +1 -1
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +9 -9
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js.map +1 -1
- package/src/generators/remote/remote.js +1 -2
- package/src/generators/remote/remote.js.map +1 -1
- package/src/generators/remote/schema.json +3 -2
- package/src/generators/scam/lib/convert-component-to-scam.js +3 -3
- package/src/generators/scam/lib/convert-component-to-scam.js.map +1 -1
- package/src/generators/scam/schema.json +2 -3
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +3 -3
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js.map +1 -1
- package/src/generators/scam-directive/schema.json +2 -3
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +3 -3
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js.map +1 -1
- package/src/generators/scam-pipe/schema.json +2 -3
- package/src/generators/setup-mf/files/webpack/webpack.prod.config.js__tmpl__ +1 -1
- package/src/generators/setup-mf/lib/add-remote-to-host.js +2 -2
- package/src/generators/setup-mf/lib/add-remote-to-host.js.map +1 -1
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +5 -5
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js.map +1 -1
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -1
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js.map +1 -1
- package/src/generators/storybook-configuration/schema.d.ts +1 -1
- package/src/generators/storybook-configuration/schema.json +2 -2
- package/src/generators/utils/get-new-project-name.d.ts +6 -0
- package/src/generators/utils/get-new-project-name.js +13 -0
- package/src/generators/utils/get-new-project-name.js.map +1 -0
- package/src/generators/utils/storybook-ast/storybook-inputs.js +2 -2
- package/src/generators/utils/storybook-ast/storybook-inputs.js.map +1 -1
- package/src/generators/utils/testing.d.ts +8 -0
- package/src/generators/utils/testing.js +39 -2
- package/src/generators/utils/testing.js.map +1 -1
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +1 -1
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js.map +1 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.js +1 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.js.map +1 -1
- package/src/migrations/update-15-2-0/remove-platform-server-exports.d.ts +2 -9
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js +53 -74
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js.map +1 -1
- package/src/migrations/update-15-2-0/update-karma-main-file.d.ts +2 -9
- package/src/migrations/update-15-2-0/update-karma-main-file.js +23 -43
- package/src/migrations/update-15-2-0/update-karma-main-file.js.map +1 -1
- package/src/migrations/update-15-7-0/install-required-packages.js +14 -1
- package/src/migrations/update-15-7-0/install-required-packages.js.map +1 -1
- package/src/utils/backward-compatible-versions.js +0 -5
- package/src/utils/backward-compatible-versions.js.map +1 -1
- package/src/utils/cli-config-utils.d.ts +1 -0
- package/src/utils/cli-config-utils.js +46 -0
- package/src/utils/cli-config-utils.js.map +1 -0
- package/src/{generators/ng-add/utilities → utils}/file-change-recorder.d.ts +1 -1
- package/src/{generators/ng-add/utilities → utils}/file-change-recorder.js +2 -2
- package/src/utils/file-change-recorder.js.map +1 -0
- package/src/utils/get-mf-projects.js +1 -1
- package/src/utils/get-mf-projects.js.map +1 -1
- package/src/utils/nx-devkit/ast-utils.js +12 -12
- package/src/utils/nx-devkit/ast-utils.js.map +1 -1
- package/src/utils/nx-devkit/route-utils.js +4 -4
- package/src/utils/nx-devkit/route-utils.js.map +1 -1
- package/src/utils/test-runners.d.ts +0 -1
- package/src/utils/test-runners.js +0 -1
- package/src/utils/test-runners.js.map +1 -1
- package/src/utils/versions.d.ts +0 -5
- package/src/utils/versions.js +1 -6
- package/src/utils/versions.js.map +1 -1
- package/tailwind.js +1 -1
- package/tailwind.js.map +1 -1
- package/src/generators/downgrade-module/compat.d.ts +0 -2
- package/src/generators/downgrade-module/compat.js +0 -6
- package/src/generators/downgrade-module/compat.js.map +0 -1
- package/src/generators/downgrade-module/downgrade-module.d.ts +0 -4
- package/src/generators/downgrade-module/downgrade-module.js +0 -26
- package/src/generators/downgrade-module/downgrade-module.js.map +0 -1
- package/src/generators/downgrade-module/files/main.ts__tmpl__ +0 -26
- package/src/generators/downgrade-module/lib/add-entry-components-to-module.d.ts +0 -3
- package/src/generators/downgrade-module/lib/add-entry-components-to-module.js +0 -10
- package/src/generators/downgrade-module/lib/add-entry-components-to-module.js.map +0 -1
- package/src/generators/downgrade-module/lib/index.d.ts +0 -4
- package/src/generators/downgrade-module/lib/index.js +0 -8
- package/src/generators/downgrade-module/lib/index.js.map +0 -1
- package/src/generators/downgrade-module/lib/normalize-options.d.ts +0 -2
- package/src/generators/downgrade-module/lib/normalize-options.js +0 -9
- package/src/generators/downgrade-module/lib/normalize-options.js.map +0 -1
- package/src/generators/downgrade-module/lib/update-main.d.ts +0 -3
- package/src/generators/downgrade-module/lib/update-main.js +0 -20
- package/src/generators/downgrade-module/lib/update-main.js.map +0 -1
- package/src/generators/downgrade-module/lib/update-module-bootstrap.d.ts +0 -3
- package/src/generators/downgrade-module/lib/update-module-bootstrap.js +0 -15
- package/src/generators/downgrade-module/lib/update-module-bootstrap.js.map +0 -1
- package/src/generators/downgrade-module/schema.d.ts +0 -7
- package/src/generators/downgrade-module/schema.json +0 -43
- package/src/generators/karma/angular-v14/files/karma.conf.js__tmpl__ +0 -44
- package/src/generators/karma/angular-v14/karma.d.ts +0 -4
- package/src/generators/karma/angular-v14/karma.js +0 -58
- package/src/generators/karma/angular-v14/karma.js.map +0 -1
- package/src/generators/karma/angular-v14/schema.d.ts +0 -3
- package/src/generators/karma/compat.d.ts +0 -2
- package/src/generators/karma/compat.js +0 -6
- package/src/generators/karma/compat.js.map +0 -1
- package/src/generators/karma/files/karma.conf.js__tmpl__ +0 -44
- package/src/generators/karma/karma.d.ts +0 -4
- package/src/generators/karma/karma.js +0 -69
- package/src/generators/karma/karma.js.map +0 -1
- package/src/generators/karma/schema.d.ts +0 -3
- package/src/generators/karma/schema.json +0 -24
- package/src/generators/karma-project/compat.d.ts +0 -2
- package/src/generators/karma-project/compat.js +0 -6
- package/src/generators/karma-project/compat.js.map +0 -1
- package/src/generators/karma-project/files/common/karma.conf.js__tmpl__ +0 -16
- package/src/generators/karma-project/files/common/tsconfig.spec.json +0 -8
- package/src/generators/karma-project/files/root-project/karma.conf.js__tmpl__ +0 -44
- package/src/generators/karma-project/files/workspace-with-root-project/karma.conf.js__tmpl__ +0 -28
- package/src/generators/karma-project/karma-project.d.ts +0 -4
- package/src/generators/karma-project/karma-project.js +0 -26
- package/src/generators/karma-project/karma-project.js.map +0 -1
- package/src/generators/karma-project/lib/check-test-target.d.ts +0 -2
- package/src/generators/karma-project/lib/check-test-target.js +0 -12
- package/src/generators/karma-project/lib/check-test-target.js.map +0 -1
- package/src/generators/karma-project/lib/generate-karma-project-files.d.ts +0 -2
- package/src/generators/karma-project/lib/generate-karma-project-files.js +0 -55
- package/src/generators/karma-project/lib/generate-karma-project-files.js.map +0 -1
- package/src/generators/karma-project/lib/update-tsconfig.d.ts +0 -2
- package/src/generators/karma-project/lib/update-tsconfig.js +0 -37
- package/src/generators/karma-project/lib/update-tsconfig.js.map +0 -1
- package/src/generators/karma-project/lib/update-workspace-config.d.ts +0 -2
- package/src/generators/karma-project/lib/update-workspace-config.js +0 -32
- package/src/generators/karma-project/lib/update-workspace-config.js.map +0 -1
- package/src/generators/karma-project/lib/v14-test-file.d.ts +0 -3
- package/src/generators/karma-project/lib/v14-test-file.js +0 -29
- package/src/generators/karma-project/lib/v14-test-file.js.map +0 -1
- package/src/generators/karma-project/schema.d.ts +0 -5
- package/src/generators/karma-project/schema.json +0 -31
- package/src/generators/ng-add/files/prettier/__dot__prettierignore +0 -4
- package/src/generators/ng-add/utilities/file-change-recorder.js.map +0 -1
- package/src/generators/upgrade-module/compat.d.ts +0 -2
- package/src/generators/upgrade-module/compat.js +0 -6
- package/src/generators/upgrade-module/compat.js.map +0 -1
- package/src/generators/upgrade-module/files/__name__-setup.ts__tmpl__ +0 -39
- package/src/generators/upgrade-module/files/hybrid.spec.ts__tmpl__ +0 -32
- package/src/generators/upgrade-module/lib/add-imports-to-module.d.ts +0 -3
- package/src/generators/upgrade-module/lib/add-imports-to-module.js +0 -17
- package/src/generators/upgrade-module/lib/add-imports-to-module.js.map +0 -1
- package/src/generators/upgrade-module/lib/create-files.d.ts +0 -3
- package/src/generators/upgrade-module/lib/create-files.js +0 -13
- package/src/generators/upgrade-module/lib/create-files.js.map +0 -1
- package/src/generators/upgrade-module/lib/index.d.ts +0 -4
- package/src/generators/upgrade-module/lib/index.js +0 -8
- package/src/generators/upgrade-module/lib/index.js.map +0 -1
- package/src/generators/upgrade-module/lib/normalize-options.d.ts +0 -2
- package/src/generators/upgrade-module/lib/normalize-options.js +0 -9
- package/src/generators/upgrade-module/lib/normalize-options.js.map +0 -1
- package/src/generators/upgrade-module/lib/update-module-bootstrap.d.ts +0 -3
- package/src/generators/upgrade-module/lib/update-module-bootstrap.js +0 -24
- package/src/generators/upgrade-module/lib/update-module-bootstrap.js.map +0 -1
- package/src/generators/upgrade-module/schema.d.ts +0 -9
- package/src/generators/upgrade-module/schema.json +0 -53
- package/src/generators/upgrade-module/upgrade-module.d.ts +0 -4
- package/src/generators/upgrade-module/upgrade-module.js +0 -26
- package/src/generators/upgrade-module/upgrade-module.js.map +0 -1
- package/src/generators/utils/upgrade.d.ts +0 -2
- package/src/generators/utils/upgrade.js +0 -25
- package/src/generators/utils/upgrade.js.map +0 -1
- package/src/migrations/update-13-0-0/add-postcss-packages.d.ts +0 -2
- package/src/migrations/update-13-0-0/add-postcss-packages.js +0 -23
- package/src/migrations/update-13-0-0/add-postcss-packages.js.map +0 -1
- package/src/migrations/update-13-2-0/opt-out-testbed-teardown.d.ts +0 -2
- package/src/migrations/update-13-2-0/opt-out-testbed-teardown.js +0 -231
- package/src/migrations/update-13-2-0/opt-out-testbed-teardown.js.map +0 -1
- package/src/migrations/update-13-2-0/update-angular-config.d.ts +0 -2
- package/src/migrations/update-13-2-0/update-angular-config.js +0 -37
- package/src/migrations/update-13-2-0/update-angular-config.js.map +0 -1
- package/src/migrations/update-13-2-0/update-angular-jest-config.d.ts +0 -3
- package/src/migrations/update-13-2-0/update-angular-jest-config.js +0 -79
- package/src/migrations/update-13-2-0/update-angular-jest-config.js.map +0 -1
- package/src/migrations/update-13-2-0/update-libraries.d.ts +0 -2
- package/src/migrations/update-13-2-0/update-libraries.js +0 -59
- package/src/migrations/update-13-2-0/update-libraries.js.map +0 -1
- package/src/migrations/update-13-2-0/update-testing-imports.d.ts +0 -2
- package/src/migrations/update-13-2-0/update-testing-imports.js +0 -108
- package/src/migrations/update-13-2-0/update-testing-imports.js.map +0 -1
- package/src/migrations/update-13-3-0/update-mfe-webpack-config.d.ts +0 -6
- package/src/migrations/update-13-3-0/update-mfe-webpack-config.js +0 -120
- package/src/migrations/update-13-3-0/update-mfe-webpack-config.js.map +0 -1
- package/src/migrations/update-13-5-0/remove-library-generator-style-default.d.ts +0 -2
- package/src/migrations/update-13-5-0/remove-library-generator-style-default.js +0 -24
- package/src/migrations/update-13-5-0/remove-library-generator-style-default.js.map +0 -1
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.d.ts +0 -20
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.js +0 -718
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.js.map +0 -1
- package/src/migrations/update-13-5-0/update-mfe-configs.d.ts +0 -5
- package/src/migrations/update-13-5-0/update-mfe-configs.js +0 -157
- package/src/migrations/update-13-5-0/update-mfe-configs.js.map +0 -1
- package/src/migrations/update-13-8-1/add-cypress-mf-workaround.d.ts +0 -2
- package/src/migrations/update-13-8-1/add-cypress-mf-workaround.js +0 -38
- package/src/migrations/update-13-8-1/add-cypress-mf-workaround.js.map +0 -1
- package/src/migrations/update-13-8-4/migrate-karma-conf.d.ts +0 -2
- package/src/migrations/update-13-8-4/migrate-karma-conf.js +0 -39
- package/src/migrations/update-13-8-4/migrate-karma-conf.js.map +0 -1
- package/src/migrations/update-13-9-0/set-build-libs-from-source.d.ts +0 -2
- package/src/migrations/update-13-9-0/set-build-libs-from-source.js +0 -27
- package/src/migrations/update-13-9-0/set-build-libs-from-source.js.map +0 -1
- package/src/migrations/update-14-0-0/rename-mf-config.d.ts +0 -2
- package/src/migrations/update-14-0-0/rename-mf-config.js +0 -27
- package/src/migrations/update-14-0-0/rename-mf-config.js.map +0 -1
- package/src/migrations/update-14-5-7/update-rxjs.d.ts +0 -2
- package/src/migrations/update-14-5-7/update-rxjs.js +0 -30
- package/src/migrations/update-14-5-7/update-rxjs.js.map +0 -1
|
@@ -1,718 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.remoteEntryModule = exports.optimizationConfig = exports.shareConfig = exports.correctConfig = void 0;
|
|
4
|
-
exports.correctConfig = `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
5
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
6
|
-
const path = require('path');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
10
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
11
|
-
* shared libraries.
|
|
12
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
13
|
-
* built files for the buildable library.
|
|
14
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
15
|
-
* the location of the generated temporary tsconfig file.
|
|
16
|
-
*/
|
|
17
|
-
const tsConfigPath =
|
|
18
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
19
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
20
|
-
|
|
21
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
22
|
-
const sharedMappings = new mf.SharedMappings();
|
|
23
|
-
sharedMappings.register(
|
|
24
|
-
tsConfigPath,
|
|
25
|
-
[
|
|
26
|
-
/* mapped paths to share */
|
|
27
|
-
],
|
|
28
|
-
workspaceRootPath
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const share = mf.share;
|
|
32
|
-
mf.setInferVersion(true);
|
|
33
|
-
module.exports = {
|
|
34
|
-
output: {
|
|
35
|
-
uniqueName: 'host',
|
|
36
|
-
publicPath: 'auto',
|
|
37
|
-
},
|
|
38
|
-
optimization: {
|
|
39
|
-
runtimeChunk: false,
|
|
40
|
-
},
|
|
41
|
-
experiments: {
|
|
42
|
-
outputModule: true,
|
|
43
|
-
},
|
|
44
|
-
resolve: {
|
|
45
|
-
alias: {
|
|
46
|
-
...sharedMappings.getAliases(),
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
plugins: [
|
|
50
|
-
new ModuleFederationPlugin({
|
|
51
|
-
remotes: {},
|
|
52
|
-
shared: share({
|
|
53
|
-
'@angular/core': {
|
|
54
|
-
singleton: true,
|
|
55
|
-
strictVersion: true,
|
|
56
|
-
requiredVersion: 'auto',
|
|
57
|
-
includeSecondaries: true,
|
|
58
|
-
},
|
|
59
|
-
'@angular/common': {
|
|
60
|
-
singleton: true,
|
|
61
|
-
strictVersion: true,
|
|
62
|
-
requiredVersion: 'auto',
|
|
63
|
-
includeSecondaries: true,
|
|
64
|
-
},
|
|
65
|
-
'@angular/common/http': {
|
|
66
|
-
singleton: true,
|
|
67
|
-
strictVersion: true,
|
|
68
|
-
requiredVersion: 'auto',
|
|
69
|
-
includeSecondaries: true,
|
|
70
|
-
},
|
|
71
|
-
'@angular/router': {
|
|
72
|
-
singleton: true,
|
|
73
|
-
strictVersion: true,
|
|
74
|
-
requiredVersion: 'auto',
|
|
75
|
-
includeSecondaries: true,
|
|
76
|
-
},
|
|
77
|
-
rxjs: {
|
|
78
|
-
singleton: true,
|
|
79
|
-
strictVersion: true,
|
|
80
|
-
requiredVersion: 'auto',
|
|
81
|
-
includeSecondaries: true,
|
|
82
|
-
},
|
|
83
|
-
...sharedMappings.getDescriptors(),
|
|
84
|
-
}),
|
|
85
|
-
library: {
|
|
86
|
-
type: 'module',
|
|
87
|
-
},
|
|
88
|
-
}),
|
|
89
|
-
sharedMappings.getPlugin(),
|
|
90
|
-
],
|
|
91
|
-
};`;
|
|
92
|
-
exports.shareConfig = {
|
|
93
|
-
correct: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
94
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
95
|
-
const path = require('path');
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
99
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
100
|
-
* shared libraries.
|
|
101
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
102
|
-
* built files for the buildable library.
|
|
103
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
104
|
-
* the location of the generated temporary tsconfig file.
|
|
105
|
-
*/
|
|
106
|
-
const tsConfigPath =
|
|
107
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
108
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
109
|
-
|
|
110
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
111
|
-
const sharedMappings = new mf.SharedMappings();
|
|
112
|
-
sharedMappings.register(
|
|
113
|
-
tsConfigPath,
|
|
114
|
-
[
|
|
115
|
-
/* mapped paths to share */
|
|
116
|
-
],
|
|
117
|
-
workspaceRootPath
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
const share = mf.share;
|
|
121
|
-
mf.setInferVersion(true);
|
|
122
|
-
module.exports = {
|
|
123
|
-
output: {
|
|
124
|
-
uniqueName: 'host',
|
|
125
|
-
publicPath: 'auto',
|
|
126
|
-
},
|
|
127
|
-
optimization: {
|
|
128
|
-
runtimeChunk: false,
|
|
129
|
-
},
|
|
130
|
-
experiments: {
|
|
131
|
-
outputModule: true,
|
|
132
|
-
},
|
|
133
|
-
resolve: {
|
|
134
|
-
alias: {
|
|
135
|
-
...sharedMappings.getAliases(),
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
plugins: [
|
|
139
|
-
new ModuleFederationPlugin({
|
|
140
|
-
remotes: {},
|
|
141
|
-
shared: share({
|
|
142
|
-
'@angular/core': {
|
|
143
|
-
singleton: true,
|
|
144
|
-
strictVersion: true,
|
|
145
|
-
requiredVersion: 'auto',
|
|
146
|
-
includeSecondaries: true,
|
|
147
|
-
},
|
|
148
|
-
'@angular/common': {
|
|
149
|
-
singleton: true,
|
|
150
|
-
strictVersion: true,
|
|
151
|
-
requiredVersion: 'auto',
|
|
152
|
-
includeSecondaries: true,
|
|
153
|
-
},
|
|
154
|
-
'@angular/common/http': {
|
|
155
|
-
singleton: true,
|
|
156
|
-
strictVersion: true,
|
|
157
|
-
requiredVersion: 'auto',
|
|
158
|
-
includeSecondaries: true,
|
|
159
|
-
},
|
|
160
|
-
'@angular/router': {
|
|
161
|
-
singleton: true,
|
|
162
|
-
strictVersion: true,
|
|
163
|
-
requiredVersion: 'auto',
|
|
164
|
-
includeSecondaries: true,
|
|
165
|
-
},
|
|
166
|
-
rxjs: {
|
|
167
|
-
singleton: true,
|
|
168
|
-
strictVersion: true,
|
|
169
|
-
requiredVersion: 'auto',
|
|
170
|
-
includeSecondaries: true,
|
|
171
|
-
},
|
|
172
|
-
...sharedMappings.getDescriptors(),
|
|
173
|
-
}),
|
|
174
|
-
library: {
|
|
175
|
-
type: 'module',
|
|
176
|
-
},
|
|
177
|
-
}),
|
|
178
|
-
sharedMappings.getPlugin(),
|
|
179
|
-
],
|
|
180
|
-
};`,
|
|
181
|
-
incorrect: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
182
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
183
|
-
const path = require('path');
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
187
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
188
|
-
* shared libraries.
|
|
189
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
190
|
-
* built files for the buildable library.
|
|
191
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
192
|
-
* the location of the generated temporary tsconfig file.
|
|
193
|
-
*/
|
|
194
|
-
const tsConfigPath =
|
|
195
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
196
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
197
|
-
|
|
198
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
199
|
-
const sharedMappings = new mf.SharedMappings();
|
|
200
|
-
sharedMappings.register(
|
|
201
|
-
tsConfigPath,
|
|
202
|
-
[
|
|
203
|
-
/* mapped paths to share */
|
|
204
|
-
],
|
|
205
|
-
workspaceRootPath
|
|
206
|
-
);
|
|
207
|
-
|
|
208
|
-
module.exports = {
|
|
209
|
-
output: {
|
|
210
|
-
uniqueName: 'host',
|
|
211
|
-
publicPath: 'auto',
|
|
212
|
-
},
|
|
213
|
-
optimization: {
|
|
214
|
-
runtimeChunk: false,
|
|
215
|
-
},
|
|
216
|
-
experiments: {
|
|
217
|
-
outputModule: true,
|
|
218
|
-
},
|
|
219
|
-
resolve: {
|
|
220
|
-
alias: {
|
|
221
|
-
...sharedMappings.getAliases(),
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
plugins: [
|
|
225
|
-
new ModuleFederationPlugin({
|
|
226
|
-
remotes: {},
|
|
227
|
-
shared: {
|
|
228
|
-
'@angular/core': {
|
|
229
|
-
singleton: true,
|
|
230
|
-
strictVersion: true,
|
|
231
|
-
requiredVersion: 'auto',
|
|
232
|
-
includeSecondaries: true,
|
|
233
|
-
},
|
|
234
|
-
'@angular/common': {
|
|
235
|
-
singleton: true,
|
|
236
|
-
strictVersion: true,
|
|
237
|
-
requiredVersion: 'auto',
|
|
238
|
-
includeSecondaries: true,
|
|
239
|
-
},
|
|
240
|
-
'@angular/common/http': {
|
|
241
|
-
singleton: true,
|
|
242
|
-
strictVersion: true,
|
|
243
|
-
requiredVersion: 'auto',
|
|
244
|
-
includeSecondaries: true,
|
|
245
|
-
},
|
|
246
|
-
'@angular/router': {
|
|
247
|
-
singleton: true,
|
|
248
|
-
strictVersion: true,
|
|
249
|
-
requiredVersion: 'auto',
|
|
250
|
-
includeSecondaries: true,
|
|
251
|
-
},
|
|
252
|
-
rxjs: {
|
|
253
|
-
singleton: true,
|
|
254
|
-
strictVersion: true,
|
|
255
|
-
requiredVersion: 'auto',
|
|
256
|
-
includeSecondaries: true,
|
|
257
|
-
},
|
|
258
|
-
...sharedMappings.getDescriptors(),
|
|
259
|
-
},
|
|
260
|
-
library: {
|
|
261
|
-
type: 'module',
|
|
262
|
-
},
|
|
263
|
-
}),
|
|
264
|
-
sharedMappings.getPlugin(),
|
|
265
|
-
],
|
|
266
|
-
};`,
|
|
267
|
-
};
|
|
268
|
-
exports.optimizationConfig = {
|
|
269
|
-
correct: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
270
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
271
|
-
const path = require('path');
|
|
272
|
-
const share = mf.share;
|
|
273
|
-
mf.setInferVersion(true);
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
277
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
278
|
-
* shared libraries.
|
|
279
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
280
|
-
* built files for the buildable library.
|
|
281
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
282
|
-
* the location of the generated temporary tsconfig file.
|
|
283
|
-
*/
|
|
284
|
-
const tsConfigPath =
|
|
285
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
286
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
287
|
-
|
|
288
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
289
|
-
const sharedMappings = new mf.SharedMappings();
|
|
290
|
-
sharedMappings.register(
|
|
291
|
-
tsConfigPath,
|
|
292
|
-
[
|
|
293
|
-
/* mapped paths to share */
|
|
294
|
-
],
|
|
295
|
-
workspaceRootPath
|
|
296
|
-
);
|
|
297
|
-
|
|
298
|
-
module.exports = {
|
|
299
|
-
output: {
|
|
300
|
-
uniqueName: 'host',
|
|
301
|
-
publicPath: 'auto',
|
|
302
|
-
},
|
|
303
|
-
optimization: {
|
|
304
|
-
minimize: true,
|
|
305
|
-
runtimeChunk: false,
|
|
306
|
-
},
|
|
307
|
-
experiments: {
|
|
308
|
-
outputModule: true,
|
|
309
|
-
},
|
|
310
|
-
resolve: {
|
|
311
|
-
alias: {
|
|
312
|
-
...sharedMappings.getAliases(),
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
plugins: [
|
|
316
|
-
new ModuleFederationPlugin({
|
|
317
|
-
remotes: {},
|
|
318
|
-
shared: share({
|
|
319
|
-
'@angular/core': {
|
|
320
|
-
singleton: true,
|
|
321
|
-
strictVersion: true,
|
|
322
|
-
requiredVersion: 'auto',
|
|
323
|
-
includeSecondaries: true,
|
|
324
|
-
},
|
|
325
|
-
'@angular/common': {
|
|
326
|
-
singleton: true,
|
|
327
|
-
strictVersion: true,
|
|
328
|
-
requiredVersion: 'auto',
|
|
329
|
-
includeSecondaries: true,
|
|
330
|
-
},
|
|
331
|
-
'@angular/common/http': {
|
|
332
|
-
singleton: true,
|
|
333
|
-
strictVersion: true,
|
|
334
|
-
requiredVersion: 'auto',
|
|
335
|
-
includeSecondaries: true,
|
|
336
|
-
},
|
|
337
|
-
'@angular/router': {
|
|
338
|
-
singleton: true,
|
|
339
|
-
strictVersion: true,
|
|
340
|
-
requiredVersion: 'auto',
|
|
341
|
-
includeSecondaries: true,
|
|
342
|
-
},
|
|
343
|
-
rxjs: {
|
|
344
|
-
singleton: true,
|
|
345
|
-
strictVersion: true,
|
|
346
|
-
requiredVersion: 'auto',
|
|
347
|
-
includeSecondaries: true,
|
|
348
|
-
},
|
|
349
|
-
...sharedMappings.getDescriptors(),
|
|
350
|
-
}),
|
|
351
|
-
library: {
|
|
352
|
-
type: 'module',
|
|
353
|
-
},
|
|
354
|
-
}),
|
|
355
|
-
sharedMappings.getPlugin(),
|
|
356
|
-
],
|
|
357
|
-
};`,
|
|
358
|
-
incorrectMissing: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
359
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
360
|
-
const path = require('path');
|
|
361
|
-
const share = mf.share;
|
|
362
|
-
mf.setInferVersion(true);
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
366
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
367
|
-
* shared libraries.
|
|
368
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
369
|
-
* built files for the buildable library.
|
|
370
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
371
|
-
* the location of the generated temporary tsconfig file.
|
|
372
|
-
*/
|
|
373
|
-
const tsConfigPath =
|
|
374
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
375
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
376
|
-
|
|
377
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
378
|
-
const sharedMappings = new mf.SharedMappings();
|
|
379
|
-
sharedMappings.register(
|
|
380
|
-
tsConfigPath,
|
|
381
|
-
[
|
|
382
|
-
/* mapped paths to share */
|
|
383
|
-
],
|
|
384
|
-
workspaceRootPath
|
|
385
|
-
);
|
|
386
|
-
|
|
387
|
-
module.exports = {
|
|
388
|
-
output: {
|
|
389
|
-
uniqueName: 'host',
|
|
390
|
-
publicPath: 'auto',
|
|
391
|
-
},
|
|
392
|
-
optimization: {
|
|
393
|
-
runtimeChunk: false,
|
|
394
|
-
},
|
|
395
|
-
experiments: {
|
|
396
|
-
outputModule: true,
|
|
397
|
-
},
|
|
398
|
-
resolve: {
|
|
399
|
-
alias: {
|
|
400
|
-
...sharedMappings.getAliases(),
|
|
401
|
-
},
|
|
402
|
-
},
|
|
403
|
-
plugins: [
|
|
404
|
-
new ModuleFederationPlugin({
|
|
405
|
-
remotes: {},
|
|
406
|
-
shared: share({
|
|
407
|
-
'@angular/core': {
|
|
408
|
-
singleton: true,
|
|
409
|
-
strictVersion: true,
|
|
410
|
-
requiredVersion: 'auto',
|
|
411
|
-
includeSecondaries: true,
|
|
412
|
-
},
|
|
413
|
-
'@angular/common': {
|
|
414
|
-
singleton: true,
|
|
415
|
-
strictVersion: true,
|
|
416
|
-
requiredVersion: 'auto',
|
|
417
|
-
includeSecondaries: true,
|
|
418
|
-
},
|
|
419
|
-
'@angular/common/http': {
|
|
420
|
-
singleton: true,
|
|
421
|
-
strictVersion: true,
|
|
422
|
-
requiredVersion: 'auto',
|
|
423
|
-
includeSecondaries: true,
|
|
424
|
-
},
|
|
425
|
-
'@angular/router': {
|
|
426
|
-
singleton: true,
|
|
427
|
-
strictVersion: true,
|
|
428
|
-
requiredVersion: 'auto',
|
|
429
|
-
includeSecondaries: true,
|
|
430
|
-
},
|
|
431
|
-
rxjs: {
|
|
432
|
-
singleton: true,
|
|
433
|
-
strictVersion: true,
|
|
434
|
-
requiredVersion: 'auto',
|
|
435
|
-
includeSecondaries: true,
|
|
436
|
-
},
|
|
437
|
-
...sharedMappings.getDescriptors(),
|
|
438
|
-
}),
|
|
439
|
-
library: {
|
|
440
|
-
type: 'module',
|
|
441
|
-
},
|
|
442
|
-
}),
|
|
443
|
-
sharedMappings.getPlugin(),
|
|
444
|
-
],
|
|
445
|
-
};`,
|
|
446
|
-
incorrectFalse: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
447
|
-
const mf = require('@angular-architects/module-federation/webpack');
|
|
448
|
-
const path = require('path');
|
|
449
|
-
const share = mf.share;
|
|
450
|
-
mf.setInferVersion(true);
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
454
|
-
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
455
|
-
* shared libraries.
|
|
456
|
-
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
457
|
-
* built files for the buildable library.
|
|
458
|
-
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
459
|
-
* the location of the generated temporary tsconfig file.
|
|
460
|
-
*/
|
|
461
|
-
const tsConfigPath =
|
|
462
|
-
process.env.NX_TSCONFIG_PATH ??
|
|
463
|
-
path.join(__dirname, '../../tsconfig.base.json');
|
|
464
|
-
|
|
465
|
-
const workspaceRootPath = path.join(__dirname, '../../');
|
|
466
|
-
const sharedMappings = new mf.SharedMappings();
|
|
467
|
-
sharedMappings.register(
|
|
468
|
-
tsConfigPath,
|
|
469
|
-
[
|
|
470
|
-
/* mapped paths to share */
|
|
471
|
-
],
|
|
472
|
-
workspaceRootPath
|
|
473
|
-
);
|
|
474
|
-
|
|
475
|
-
module.exports = {
|
|
476
|
-
output: {
|
|
477
|
-
uniqueName: 'host',
|
|
478
|
-
publicPath: 'auto',
|
|
479
|
-
},
|
|
480
|
-
optimization: {
|
|
481
|
-
minimize: false,
|
|
482
|
-
runtimeChunk: false,
|
|
483
|
-
},
|
|
484
|
-
experiments: {
|
|
485
|
-
outputModule: true,
|
|
486
|
-
},
|
|
487
|
-
resolve: {
|
|
488
|
-
alias: {
|
|
489
|
-
...sharedMappings.getAliases(),
|
|
490
|
-
},
|
|
491
|
-
},
|
|
492
|
-
plugins: [
|
|
493
|
-
new ModuleFederationPlugin({
|
|
494
|
-
remotes: {},
|
|
495
|
-
shared: share({
|
|
496
|
-
'@angular/core': {
|
|
497
|
-
singleton: true,
|
|
498
|
-
strictVersion: true,
|
|
499
|
-
requiredVersion: 'auto',
|
|
500
|
-
includeSecondaries: true,
|
|
501
|
-
},
|
|
502
|
-
'@angular/common': {
|
|
503
|
-
singleton: true,
|
|
504
|
-
strictVersion: true,
|
|
505
|
-
requiredVersion: 'auto',
|
|
506
|
-
includeSecondaries: true,
|
|
507
|
-
},
|
|
508
|
-
'@angular/common/http': {
|
|
509
|
-
singleton: true,
|
|
510
|
-
strictVersion: true,
|
|
511
|
-
requiredVersion: 'auto',
|
|
512
|
-
includeSecondaries: true,
|
|
513
|
-
},
|
|
514
|
-
'@angular/router': {
|
|
515
|
-
singleton: true,
|
|
516
|
-
strictVersion: true,
|
|
517
|
-
requiredVersion: 'auto',
|
|
518
|
-
includeSecondaries: true,
|
|
519
|
-
},
|
|
520
|
-
rxjs: {
|
|
521
|
-
singleton: true,
|
|
522
|
-
strictVersion: true,
|
|
523
|
-
requiredVersion: 'auto',
|
|
524
|
-
includeSecondaries: true,
|
|
525
|
-
},
|
|
526
|
-
...sharedMappings.getDescriptors(),
|
|
527
|
-
}),
|
|
528
|
-
library: {
|
|
529
|
-
type: 'module',
|
|
530
|
-
},
|
|
531
|
-
}),
|
|
532
|
-
sharedMappings.getPlugin(),
|
|
533
|
-
],
|
|
534
|
-
};`,
|
|
535
|
-
};
|
|
536
|
-
exports.remoteEntryModule = {
|
|
537
|
-
correct: `import { NgModule } from '@angular/core';
|
|
538
|
-
import { CommonModule } from '@angular/common';
|
|
539
|
-
import { RouterModule } from '@angular/router';
|
|
540
|
-
|
|
541
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
542
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
543
|
-
|
|
544
|
-
@NgModule({
|
|
545
|
-
declarations: [RemoteEntryComponent],
|
|
546
|
-
imports: [
|
|
547
|
-
FeatLoginModule,
|
|
548
|
-
CommonModule,
|
|
549
|
-
RouterModule.forChild([
|
|
550
|
-
{
|
|
551
|
-
path: '',
|
|
552
|
-
component: RemoteEntryComponent,
|
|
553
|
-
},
|
|
554
|
-
]),
|
|
555
|
-
],
|
|
556
|
-
providers: [],
|
|
557
|
-
})
|
|
558
|
-
export class RemoteEntryModule {}`,
|
|
559
|
-
noBrowserOrCommonModule: `import { NgModule } from '@angular/core';
|
|
560
|
-
import { RouterModule } from '@angular/router';
|
|
561
|
-
|
|
562
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
563
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
564
|
-
|
|
565
|
-
@NgModule({
|
|
566
|
-
declarations: [RemoteEntryComponent],
|
|
567
|
-
imports: [
|
|
568
|
-
FeatLoginModule,
|
|
569
|
-
RouterModule.forChild([
|
|
570
|
-
{
|
|
571
|
-
path: '',
|
|
572
|
-
component: RemoteEntryComponent,
|
|
573
|
-
},
|
|
574
|
-
]),
|
|
575
|
-
],
|
|
576
|
-
providers: [],
|
|
577
|
-
})
|
|
578
|
-
export class RemoteEntryModule {}`,
|
|
579
|
-
correctWithNoBrowserOrCommonModule: `import { CommonModule } from '@angular/common';
|
|
580
|
-
import { NgModule } from '@angular/core';
|
|
581
|
-
import { RouterModule } from '@angular/router';
|
|
582
|
-
|
|
583
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
584
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
585
|
-
|
|
586
|
-
@NgModule({
|
|
587
|
-
declarations: [RemoteEntryComponent],
|
|
588
|
-
imports: [
|
|
589
|
-
CommonModule,
|
|
590
|
-
FeatLoginModule,
|
|
591
|
-
RouterModule.forChild([
|
|
592
|
-
{
|
|
593
|
-
path: '',
|
|
594
|
-
component: RemoteEntryComponent,
|
|
595
|
-
},
|
|
596
|
-
]),
|
|
597
|
-
],
|
|
598
|
-
providers: [],
|
|
599
|
-
})
|
|
600
|
-
export class RemoteEntryModule {}`,
|
|
601
|
-
onlyBrowserModule: `import { NgModule } from '@angular/core';
|
|
602
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
603
|
-
import { RouterModule } from '@angular/router';
|
|
604
|
-
|
|
605
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
606
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
607
|
-
|
|
608
|
-
@NgModule({
|
|
609
|
-
declarations: [RemoteEntryComponent],
|
|
610
|
-
imports: [
|
|
611
|
-
FeatLoginModule,
|
|
612
|
-
BrowserModule,
|
|
613
|
-
RouterModule.forChild([
|
|
614
|
-
{
|
|
615
|
-
path: '',
|
|
616
|
-
component: RemoteEntryComponent,
|
|
617
|
-
},
|
|
618
|
-
]),
|
|
619
|
-
],
|
|
620
|
-
providers: [],
|
|
621
|
-
})
|
|
622
|
-
export class RemoteEntryModule {}`,
|
|
623
|
-
browserModuleWithCommonImportedInFile: `import { CommonModule } from '@angular/common';
|
|
624
|
-
import { NgModule } from '@angular/core';
|
|
625
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
626
|
-
import { RouterModule } from '@angular/router';
|
|
627
|
-
|
|
628
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
629
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
630
|
-
|
|
631
|
-
@NgModule({
|
|
632
|
-
declarations: [RemoteEntryComponent],
|
|
633
|
-
imports: [
|
|
634
|
-
FeatLoginModule,
|
|
635
|
-
BrowserModule,
|
|
636
|
-
RouterModule.forChild([
|
|
637
|
-
{
|
|
638
|
-
path: '',
|
|
639
|
-
component: RemoteEntryComponent,
|
|
640
|
-
},
|
|
641
|
-
]),
|
|
642
|
-
],
|
|
643
|
-
providers: [],
|
|
644
|
-
})
|
|
645
|
-
export class RemoteEntryModule {}`,
|
|
646
|
-
browserModuleWithCommonImportedInArray: `import { CommonModule } from '@angular/common';
|
|
647
|
-
import { NgModule } from '@angular/core';
|
|
648
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
649
|
-
import { RouterModule } from '@angular/router';
|
|
650
|
-
|
|
651
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
652
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
653
|
-
|
|
654
|
-
@NgModule({
|
|
655
|
-
declarations: [RemoteEntryComponent],
|
|
656
|
-
imports: [
|
|
657
|
-
FeatLoginModule,
|
|
658
|
-
CommonModule,
|
|
659
|
-
BrowserModule,
|
|
660
|
-
RouterModule.forChild([
|
|
661
|
-
{
|
|
662
|
-
path: '',
|
|
663
|
-
component: RemoteEntryComponent,
|
|
664
|
-
},
|
|
665
|
-
]),
|
|
666
|
-
],
|
|
667
|
-
providers: [],
|
|
668
|
-
})
|
|
669
|
-
export class RemoteEntryModule {}`,
|
|
670
|
-
correctBrowserModuleWithCommonImportedInArray: `import { CommonModule } from '@angular/common';
|
|
671
|
-
import { NgModule } from '@angular/core';
|
|
672
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
673
|
-
import { RouterModule } from '@angular/router';
|
|
674
|
-
|
|
675
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
676
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
677
|
-
|
|
678
|
-
@NgModule({
|
|
679
|
-
declarations: [RemoteEntryComponent],
|
|
680
|
-
imports: [
|
|
681
|
-
FeatLoginModule,
|
|
682
|
-
CommonModule,
|
|
683
|
-
|
|
684
|
-
RouterModule.forChild([
|
|
685
|
-
{
|
|
686
|
-
path: '',
|
|
687
|
-
component: RemoteEntryComponent,
|
|
688
|
-
},
|
|
689
|
-
]),
|
|
690
|
-
],
|
|
691
|
-
providers: [],
|
|
692
|
-
})
|
|
693
|
-
export class RemoteEntryModule {}`,
|
|
694
|
-
correctBrowserModuleWithCommonImportedInFile: `import { CommonModule } from '@angular/common';
|
|
695
|
-
import { NgModule } from '@angular/core';
|
|
696
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
697
|
-
import { RouterModule } from '@angular/router';
|
|
698
|
-
|
|
699
|
-
import { RemoteEntryComponent } from './entry.component';
|
|
700
|
-
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
701
|
-
|
|
702
|
-
@NgModule({
|
|
703
|
-
declarations: [RemoteEntryComponent],
|
|
704
|
-
imports: [
|
|
705
|
-
FeatLoginModule,
|
|
706
|
-
CommonModule,
|
|
707
|
-
RouterModule.forChild([
|
|
708
|
-
{
|
|
709
|
-
path: '',
|
|
710
|
-
component: RemoteEntryComponent,
|
|
711
|
-
},
|
|
712
|
-
]),
|
|
713
|
-
],
|
|
714
|
-
providers: [],
|
|
715
|
-
})
|
|
716
|
-
export class RemoteEntryModule {}`,
|
|
717
|
-
};
|
|
718
|
-
//# sourceMappingURL=update-mfe-config.test-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-mfe-config.test-data.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-13-5-0/update-mfe-config.test-data.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuF1B,CAAC;AAES,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFR;IACD,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFV;CACF,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwFN;IACH,gBAAgB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuFf;IACH,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwFb;CACJ,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqByB;IAClC,uBAAuB,EAAE;;;;;;;;;;;;;;;;;;;oCAmBS;IAClC,kCAAkC,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqBF;IAClC,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqBe;IAClC,qCAAqC,EAAE;;;;;;;;;;;;;;;;;;;;;;oCAsBL;IAClC,sCAAsC,EAAE;;;;;;;;;;;;;;;;;;;;;;;oCAuBN;IAClC,6CAA6C,EAAE;;;;;;;;;;;;;;;;;;;;;;;oCAuBb;IAClC,4CAA4C,EAAE;;;;;;;;;;;;;;;;;;;;;;oCAsBZ;CACnC,CAAC"}
|