File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
packages/enhanced/src/lib/container Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @module-federation/enhanced ' : minor
3
+ ---
4
+
5
+ fix(enhanced): add module factory for EntryDependency when entry is empty
6
+
7
+ - bind normalModuleFactory for EntryDependency when no moduleFactory is bound for EntryDependency
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ const ModuleDependency = require(
27
27
normalizeWebpackPath ( 'webpack/lib/dependencies/ModuleDependency' ) ,
28
28
) as typeof import ( 'webpack/lib/dependencies/ModuleDependency' ) ;
29
29
30
+ const EntryDependency = require (
31
+ normalizeWebpackPath ( 'webpack/lib/dependencies/EntryDependency' ) ,
32
+ ) as typeof import ( 'webpack/lib/dependencies/EntryDependency' ) ;
33
+
30
34
const createSchemaValidation = require (
31
35
normalizeWebpackPath ( 'webpack/lib/util/create-schema-validation' ) ,
32
36
) as typeof import ( 'webpack/lib/util/create-schema-validation' ) ;
@@ -311,6 +315,13 @@ class ContainerPlugin {
311
315
ContainerExposedDependency ,
312
316
normalModuleFactory ,
313
317
) ;
318
+
319
+ if ( ! compilation . dependencyFactories . has ( EntryDependency ) ) {
320
+ compilation . dependencyFactories . set (
321
+ EntryDependency ,
322
+ normalModuleFactory ,
323
+ ) ;
324
+ }
314
325
} ,
315
326
) ;
316
327
You can’t perform that action at this time.
0 commit comments