Skip to content

Commit 59db2fd

Browse files
authored
fix(enhanced): correct enhanced ModuleFederation types error (#2828)
1 parent aab9229 commit 59db2fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/fifty-beans-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/enhanced': patch
3+
---
4+
5+
fix(enhanced): correct enhanced ModuleFederation types error

packages/enhanced/src/wrapper/ModuleFederationPlugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { WebpackPluginInstance, Compiler } from 'webpack';
22
import type { moduleFederationPlugin } from '@module-federation/sdk';
33
import type IModuleFederationPlugin from '../lib/container/ModuleFederationPlugin';
4+
import type { ResourceInfo } from '@module-federation/manifest';
45

56
import { getWebpackPath } from '@module-federation/sdk/normalize-webpack-path';
67
import path from 'node:path';
@@ -45,7 +46,7 @@ export default class ModuleFederationPlugin implements WebpackPluginInstance {
4546
}
4647
}
4748

48-
get statsResourceInfo() {
49+
get statsResourceInfo(): Partial<ResourceInfo> | undefined {
4950
return this._mfPlugin?.statsResourceInfo;
5051
}
5152
}

0 commit comments

Comments
 (0)