Skip to content

Commit

Permalink
fix(react): import path info on federated module (#20091)
Browse files Browse the repository at this point in the history
Co-authored-by: sevFlo <florian.jost@sevdesk.de>
  • Loading branch information
raketeFlo and sevFlo authored Nov 8, 2023
1 parent 395eb70 commit 9330513
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export async function federateModuleGenerator(tree: Tree, schema: Schema) {
Now you can use the module from your host app like this:
Static import:
import { MyComponent } from '${schema.name}/${remoteName}';
import { MyComponent } from '${remoteName}/${schema.name}';
Dynamic import:
import('${schema.name}/${remoteName}').then((m) => m.${remoteName});
import('${remoteName}/${schema.name}').then((m) => m.${schema.name});
`
);
return runTasksInSerial(...tasks);
Expand Down

0 comments on commit 9330513

Please sign in to comment.