Skip to content

Commit

Permalink
fix(enhanced): avoid FederationRuntimePlugin modify original options
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Feb 21, 2024
1 parent 9ea7b82 commit 5d181f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FederationRuntimePlugin {
bundlerRuntimePath: string;

constructor(options?: moduleFederationPlugin.ModuleFederationPluginOptions) {
this.options = options;
this.options = { ...options };
this.entryFilePath = '';
this.bundlerRuntimePath = BundlerRuntimePath;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/managers/src/ContainerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContainerManager extends BasicPluginOptionsManager<moduleFederationPlugin.
const { name } = this.options;
const version = getBuildVersion();

return `__VMOK_${name}:${version}__`;
return `__MF_${name}:${version}__`;
}

// { '.' : './src/Button.jsx' } => { '.' : ['src/Button'] }
Expand Down
Empty file.

0 comments on commit 5d181f3

Please sign in to comment.