File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
packages/enhanced/src/lib/container/runtime Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @module-federation/enhanced ' : patch
3+ ---
4+
5+ remove module resolve path replacements
Original file line number Diff line number Diff line change @@ -370,10 +370,6 @@ class FederationRuntimePlugin {
370370 ) ;
371371 }
372372
373- if ( isHoisted ) {
374- runtimePath = runtimePath . replace ( '.cjs.js' , '.esm.mjs' ) ;
375- }
376-
377373 const alias : any = compiler . options . resolve . alias || { } ;
378374 alias [ '@module-federation/runtime$' ] =
379375 alias [ '@module-federation/runtime$' ] || runtimePath ;
@@ -437,11 +433,6 @@ class FederationRuntimePlugin {
437433 }
438434
439435 if ( this . options ?. experiments ?. federationRuntime === 'hoisted' ) {
440- this . bundlerRuntimePath = this . bundlerRuntimePath . replace (
441- '.cjs.js' ,
442- '.esm.mjs' ,
443- ) ;
444-
445436 new EmbedFederationRuntimePlugin ( ) . apply ( compiler ) ;
446437
447438 new HoistContainerReferences ( ) . apply ( compiler ) ;
@@ -450,7 +441,7 @@ class FederationRuntimePlugin {
450441 / @ m o d u l e - f e d e r a t i o n \/ r u n t i m e / ,
451442 ( resolveData ) => {
452443 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 ) ) {
453- resolveData . request = RuntimePath . replace ( 'cjs.js' , 'esm.mjs' ) ;
444+ resolveData . request = RuntimePath ;
454445
455446 if ( resolveData . createData ) {
456447 resolveData . createData . request = resolveData . request ;
You can’t perform that action at this time.
0 commit comments