File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
packages/enhanced/src/lib/container/runtime Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @module-federation/enhanced ' : patch
3
+ ---
4
+
5
+ remove normal module replacement on federation runtime. rely on alias instead
Original file line number Diff line number Diff line change @@ -413,19 +413,6 @@ class FederationRuntimePlugin {
413
413
414
414
new HoistContainerReferences ( ) . apply ( compiler ) ;
415
415
416
- const runtimePath = this . getRuntimeAlias ( compiler ) ;
417
- new compiler . webpack . NormalModuleReplacementPlugin (
418
- / @ m o d u l e - f e d e r a t i o n \/ r u n t i m e / ,
419
- ( resolveData ) => {
420
- if ( / w e b p a c k - b u n d l e r - r u n t i m e / . test ( resolveData . contextInfo . issuer ) ) {
421
- resolveData . request = runtimePath ;
422
-
423
- if ( resolveData . createData ) {
424
- resolveData . createData . request = resolveData . request ;
425
- }
426
- }
427
- } ,
428
- ) . apply ( compiler ) ;
429
416
// dont run multiple times on every apply()
430
417
if ( ! onceForCompiler . has ( compiler ) ) {
431
418
this . prependEntry ( compiler ) ;
You can’t perform that action at this time.
0 commit comments