Skip to content

Commit 81201b8

Browse files
authored
fix(modernjs): mfConfigPlugin should run after modernjs initial plugin (#2947)
1 parent e25a957 commit 81201b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/fast-cherries-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/modern-js': patch
3+
---
4+
5+
fix(modernjs): mfConfigPlugin should run after @modern-js/plugin-initialize

packages/modernjs/src/cli/configPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const moduleFederationConfigPlugin = (
5454
userConfig: InternalModernPluginOptions,
5555
): CliPlugin<AppTools> => ({
5656
name: '@modern-js/plugin-module-federation-config',
57+
pre: ['@modern-js/plugin-initialize'],
5758
post: ['@modern-js/plugin-module-federation'],
5859
setup: async ({ useConfigContext, useAppContext }) => {
5960
const modernjsConfig = useConfigContext();

0 commit comments

Comments
 (0)