We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7270391 commit 8d1fecdCopy full SHA for 8d1fecd
packages/node/src/runtimePlugin.ts
@@ -2,6 +2,11 @@ import type {
2
ModuleFederationRuntimePlugin,
3
ModuleFederation,
4
} from '@module-federation/runtime';
5
+
6
+type BeforeInitArgs = Parameters<
7
+ NonNullable<ModuleFederationRuntimePlugin['beforeInit']>
8
+>[0];
9
10
type WebpackRequire = {
11
(id: string): any;
12
u: (chunkId: string) => string;
@@ -377,7 +382,7 @@ export const setupWebpackRequirePatching = (
377
382
export default function (): ModuleFederationRuntimePlugin {
378
383
return {
379
384
name: 'node-federation-plugin',
380
- beforeInit(args) {
385
+ beforeInit(args: BeforeInitArgs) {
381
386
// Patch webpack chunk loading handlers
387
(() => {
388
// Create the chunk tracking object
0 commit comments