15 lines
1.2 KiB
JSON
15 lines
1.2 KiB
JSON
{
|
|
"name": "update-20-2-0-update-with-module-federation-import",
|
|
"cli": "nx",
|
|
"version": "20.2.0-beta.2",
|
|
"description": "Update the withModuleFederation import use @nx/module-federation/webpack.",
|
|
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
|
|
"implementation": "/packages/react/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/react",
|
|
"schema": null,
|
|
"type": "migration",
|
|
"examplesFile": "#### Migrate withModuleFederation Import to New Package\n\nUpdate the withModuleFederation import to use @nx/module-federation/webpack.\n\n#### Sample Code Changes\n\nUpdate import paths for `withModuleFederation` and `withModuleFederationForSSR`.\n\n{% tabs %}\n{% tab label=\"Before\" %}\n\n```ts {% fileName=\"apps/shell/webpack.config.ts\" %}\nimport {\n withModuleFederation,\n withModuleFederationForSSR,\n} from '@nx/react/module-federation';\n```\n\n{% /tab %}\n{% tab label=\"After\" %}\n\n```ts {% fileName=\"apps/shell/webpack.config.ts\" %}\nimport {\n withModuleFederation,\n withModuleFederationForSSR,\n} from '@nx/module-federation/webpack';\n```\n\n{% /tab %}\n{% /tabs %}\n"
|
|
}
|