Skip to content

Commit 1f471bb

Browse files
fix(enhanced): resolve webpack bundler runtime esm entry
1 parent aff2359 commit 1f471bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const RuntimeToolsPath = require.resolve(
3838
'@module-federation/runtime-tools/dist/index.esm.js',
3939
);
4040
const BundlerRuntimePath = require.resolve(
41-
'@module-federation/webpack-bundler-runtime/dist/index.esm.js',
41+
'@module-federation/webpack-bundler-runtime/dist/index.js',
4242
{
4343
paths: [RuntimeToolsPath],
4444
},
@@ -432,7 +432,7 @@ class FederationRuntimePlugin {
432432

433433
if (this.options?.implementation) {
434434
this.bundlerRuntimePath = require.resolve(
435-
'@module-federation/webpack-bundler-runtime/dist/index.esm.js',
435+
'@module-federation/webpack-bundler-runtime/dist/index.js',
436436
{
437437
paths: [this.options.implementation],
438438
},

0 commit comments

Comments
 (0)