Skip to content

Commit 13b1e84

Browse files
authored
chore: remove legacy data prefetch (#4695)
1 parent 48a0028 commit 13b1e84

76 files changed

Lines changed: 779 additions & 4126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@module-federation/modern-js",
2323
"@module-federation/modern-js-v3",
2424
"@module-federation/retry-plugin",
25-
"@module-federation/data-prefetch",
2625
"@module-federation/rsbuild-plugin",
2726
"@module-federation/error-codes",
2827
"@module-federation/inject-external-runtime-core-plugin",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@module-federation/enhanced": major
3+
"@module-federation/sdk": major
4+
"@module-federation/manifest": major
5+
"@module-federation/runtime-core": major
6+
"@module-federation/webpack-bundler-runtime": major
7+
---
8+
9+
chore: remove the legacy Data Prefetch package and its related configuration, manifest fields, and runtime hooks.

apps/manifest-demo/3010-rspack-provider/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"build:production": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec rspack build --config rspack.config.js --mode production",
2424
"serve": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec rspack serve --config rspack.config.js --mode production --port 3010 --no-hot",
2525
"serve:development": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec rspack serve --config rspack.config.js --mode development --port 3010",
26-
"serve:production": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec rspack serve --config rspack.config.js --mode production --port 3010 --no-hot",
27-
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --no-error-on-unmatched-pattern --ignore-pattern node_modules **/*.{ts,tsx,js,jsx}"
26+
"serve:production": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec rspack serve --config rspack.config.js --mode production --port 3010 --no-hot"
2827
}
2928
}

apps/manifest-demo/3010-rspack-provider/rspack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ module.exports = (_env, argv = {}) => {
9292
requiredVersion: '^18.3.1',
9393
},
9494
},
95-
dataPrefetch: true,
9695
experiments: {
9796
externalRuntime: true,
9897
},

apps/manifest-demo/webpack-host/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"serve": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli serve --config webpack.config.js --mode production --port 3013 --no-hot",
2525
"serve:development": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli serve --config webpack.config.js --mode development --port 3013",
2626
"serve:production": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli serve --config webpack.config.js --mode production --port 3013 --no-hot",
27-
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --no-error-on-unmatched-pattern --ignore-pattern node_modules **/*.{ts,tsx,js,jsx}",
2827
"serve-static": "pnpm exec serve dist -l 3013 --cors",
2928
"e2e": "pnpm exec cypress run --project . --e2e --config baseUrl=http://localhost:3013 --browser chrome",
3029
"e2e:development": "pnpm exec cypress open --project . --e2e --config baseUrl=http://localhost:3013 --browser electron",

apps/manifest-demo/webpack-host/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ module.exports = (_env, argv = {}) => {
119119
requiredVersion: '^18.3.1',
120120
},
121121
},
122-
dataPrefetch: true,
123122
runtimePlugins: [path.join(__dirname, './runtimePlugin.ts')],
124123
experiments: {
125124
provideExternalRuntime: true,

apps/website-new/docs/en/blog/error-load-remote.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ export default fallbackPlugin;
475475
},
476476
globalName: 'fallback',
477477
pluginVersion: '1',
478-
prefetchInterface: false,
479478
publicPath: 'https://example.com/',
480479
},
481480
shared: [],

apps/website-new/docs/en/guide/debug/variables.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ moduleInfo: {
388388
}
389389
}
390390
],
391-
"prefetchInterface": true,
392391
"publicPath": "http://127.0.0.1:4001/"
393392
},
394393
"rspack_provider:http://localhost:3010/mf-manifest.json": {
@@ -579,12 +578,6 @@ type Modules = Array<{
579578
};
580579
}>;
581580
```
582-
#### prefetchInterface
583-
584-
> Only exists in the producer
585-
586-
Whether the current module has preloading enabled.
587-
588581
### __SHARE__
589582

590583
All shared module information currently registered (loaded), the type definition is as follows:

apps/website-new/docs/en/guide/runtime/runtime-api.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,6 @@ type depsPreloadArg = Omit<PreloadRemoteArgs, 'depsRemote'>;
872872
type PreloadRemoteArgs = {
873873
// Name or alias of the remote to be preloaded
874874
nameOrAlias: string;
875-
// Whether to preload the module's interface, the default value is false. For details, please refer to the <Interface Prefetch> chapter in <Performance Optimization>. The @vmok/kit version needs to be greater than 1.7.6.
876-
prefetchInterface?: boolean;
877875
// The exposes to be preloaded
878876
// By default, all exposes are preloaded
879877
// When exposes are provided, only the required exposes will be loaded

0 commit comments

Comments
 (0)