Skip to content

Commit 3c8bd83

Browse files
authored
fix(rsbuild-plugin): add more MF packages to source.include (#3565)
1 parent 0f71cbc commit 3c8bd83

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/sharp-pans-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/rsbuild-plugin': patch
3+
---
4+
5+
fix(rsbuild-plugin): add more MF packages to `source.include`

packages/rsbuild-plugin/src/cli/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ export const pluginModuleFederation = (
184184
// adding to include and let SWC transform it
185185
config.source.include = [
186186
...(config.source.include || []),
187-
/@module-federation[\\/]sdk/,
188-
/@module-federation[\\/]runtime/,
187+
/@module-federation[\\/]/,
189188
];
190189

191190
return config;

0 commit comments

Comments
 (0)