@module-federation/metro 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel-plugin/patch-initialize-core.js +3 -3
- package/babel-plugin/patch-require.js +3 -3
- package/dist/babel/transformer.js +1 -1
- package/dist/commands/bundle-host/index.js +17 -12
- package/dist/commands/bundle-host/index.mjs +8 -30
- package/dist/commands/bundle-host/options.js +12 -8
- package/dist/commands/bundle-host/options.mjs +2 -3
- package/dist/commands/bundle-host/types.js +2 -2
- package/dist/commands/bundle-host/types.mjs +1 -2
- package/dist/commands/bundle-remote/index.js +34 -19
- package/dist/commands/bundle-remote/index.mjs +28 -38
- package/dist/commands/bundle-remote/options.js +15 -11
- package/dist/commands/bundle-remote/options.mjs +4 -5
- package/dist/commands/bundle-remote/types.js +2 -2
- package/dist/commands/bundle-remote/types.mjs +1 -2
- package/dist/commands/index.js +14 -10
- package/dist/commands/index.mjs +3 -3
- package/dist/commands/types.js +2 -2
- package/dist/commands/types.mjs +1 -2
- package/dist/commands/utils/create-module-path-remapper.js +15 -11
- package/dist/commands/utils/create-module-path-remapper.mjs +1 -2
- package/dist/commands/utils/create-resolver.d.ts +1 -1
- package/dist/commands/utils/create-resolver.js +15 -11
- package/dist/commands/utils/create-resolver.mjs +1 -2
- package/dist/commands/utils/get-community-plugin.d.ts +1 -2
- package/dist/commands/utils/get-community-plugin.js +15 -12
- package/dist/commands/utils/get-community-plugin.mjs +5 -6
- package/dist/commands/utils/load-metro-config.js +15 -14
- package/dist/commands/utils/load-metro-config.mjs +9 -11
- package/dist/commands/utils/path-utils.d.ts +2 -0
- package/dist/commands/utils/path-utils.js +51 -0
- package/dist/commands/utils/path-utils.mjs +11 -0
- package/dist/commands/utils/save-bundle-and-map.d.ts +1 -1
- package/dist/commands/utils/save-bundle-and-map.js +14 -11
- package/dist/commands/utils/save-bundle-and-map.mjs +3 -27
- package/dist/index.js +14 -10
- package/dist/index.mjs +3 -5
- package/dist/logger.d.ts +2 -0
- package/dist/logger.js +43 -0
- package/dist/logger.mjs +6 -0
- package/dist/modules/asyncRequire.ts +41 -10
- package/dist/modules/metroCorePlugin.ts +2 -3
- package/dist/plugin/babel-transformer.js +13 -9
- package/dist/plugin/babel-transformer.mjs +3 -3
- package/dist/plugin/constants.d.ts +1 -0
- package/dist/plugin/constants.js +27 -19
- package/dist/plugin/constants.mjs +3 -3
- package/dist/plugin/generators.js +28 -21
- package/dist/plugin/generators.mjs +14 -11
- package/dist/plugin/helpers.d.ts +1 -0
- package/dist/plugin/helpers.js +28 -20
- package/dist/plugin/helpers.mjs +9 -9
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.js +64 -13
- package/dist/plugin/index.mjs +54 -7
- package/dist/plugin/manifest-middleware.d.ts +12 -0
- package/dist/plugin/manifest-middleware.js +217 -0
- package/dist/plugin/manifest-middleware.mjs +170 -0
- package/dist/plugin/manifest.d.ts +15 -2
- package/dist/plugin/manifest.js +126 -26
- package/dist/plugin/manifest.mjs +107 -22
- package/dist/plugin/normalize-extra-options.js +16 -12
- package/dist/plugin/normalize-extra-options.mjs +2 -3
- package/dist/plugin/normalize-options.js +70 -20
- package/dist/plugin/normalize-options.mjs +60 -14
- package/dist/plugin/resolver.d.ts +1 -1
- package/dist/plugin/resolver.js +16 -12
- package/dist/plugin/resolver.mjs +10 -11
- package/dist/plugin/rewrite-request.d.ts +5 -1
- package/dist/plugin/rewrite-request.js +23 -10
- package/dist/plugin/rewrite-request.mjs +13 -5
- package/dist/plugin/serializer.d.ts +2 -1
- package/dist/plugin/serializer.js +59 -39
- package/dist/plugin/serializer.mjs +48 -55
- package/dist/plugin/validate-options.js +116 -12
- package/dist/plugin/validate-options.mjs +95 -7
- package/dist/types.d.ts +15 -15
- package/dist/types.js +2 -2
- package/dist/types.mjs +1 -2
- package/dist/utils/errors.js +16 -12
- package/dist/utils/errors.mjs +1 -2
- package/dist/utils/federated-remote-types.d.ts +12 -0
- package/dist/utils/federated-remote-types.js +140 -0
- package/dist/utils/federated-remote-types.mjs +90 -0
- package/dist/utils/index.js +14 -10
- package/dist/utils/index.mjs +3 -5
- package/dist/utils/metro-compat.d.ts +23 -0
- package/dist/utils/metro-compat.js +74 -0
- package/dist/utils/metro-compat.mjs +26 -0
- package/dist/utils/vm-manager.d.ts +1 -1
- package/dist/utils/vm-manager.js +14 -12
- package/dist/utils/vm-manager.mjs +3 -6
- package/package.json +22 -7
- package/dist/babel/transformer.d.ts +0 -2
- package/dist/runtime/host-entry.d.ts +0 -1
- package/dist/runtime/init-host.d.ts +0 -1
- package/dist/runtime/remote-entry.d.ts +0 -1
- package/dist/runtime/remote-hmr.d.ts +0 -1
- package/dist/runtime/remote-module-registry.d.ts +0 -7
- package/dist/runtime/remote-module.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/metro",
|
|
3
|
-
"version": "0.0.0-perf-
|
|
3
|
+
"version": "0.0.0-perf-website-code-usage-20260914033703",
|
|
4
4
|
"description": "Module Federation for Metro bundler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module-federation",
|
|
@@ -57,8 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@expo/metro-runtime": "^5.0.4",
|
|
60
|
-
"@module-federation/
|
|
61
|
-
"@module-federation/
|
|
60
|
+
"@module-federation/dts-plugin": "0.0.0-perf-website-code-usage-20260914033703",
|
|
61
|
+
"@module-federation/runtime": "0.0.0-perf-website-code-usage-20260914033703",
|
|
62
|
+
"@module-federation/sdk": "0.0.0-perf-website-code-usage-20260914033703"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
65
|
"@babel/types": "^7.25.0",
|
|
@@ -70,10 +71,21 @@
|
|
|
70
71
|
"react": ">=19.0.0",
|
|
71
72
|
"react-native": ">=0.79.0"
|
|
72
73
|
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"react-native": {
|
|
79
|
+
"optional": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
73
82
|
"devDependencies": {
|
|
74
|
-
"@rslib/core": "^0.
|
|
75
|
-
"@
|
|
83
|
+
"@rslib/core": "^0.23.2",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
85
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
86
|
+
"@types/node": "^20.19.5",
|
|
76
87
|
"@types/react": "^19.1.0",
|
|
88
|
+
"memfs": "4.46.0",
|
|
77
89
|
"metro": "^0.82.1",
|
|
78
90
|
"metro-config": "^0.82.1",
|
|
79
91
|
"metro-file-map": "^0.82.1",
|
|
@@ -82,10 +94,13 @@
|
|
|
82
94
|
"react": "19.1.0",
|
|
83
95
|
"react-native": "0.80.0",
|
|
84
96
|
"ts-node": "^10.9.2",
|
|
85
|
-
"typescript": "^
|
|
97
|
+
"typescript": "^6.0.3"
|
|
86
98
|
},
|
|
87
99
|
"scripts": {
|
|
88
100
|
"build": "rslib build",
|
|
89
|
-
"
|
|
101
|
+
"test": "rstest",
|
|
102
|
+
"test:watch": "rstest --watch",
|
|
103
|
+
"typecheck": "tsc --noEmit",
|
|
104
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.{ts,tsx,js,jsx}\""
|
|
90
105
|
}
|
|
91
106
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function setup(): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function loadAndGetShared(id: any): Promise<any>;
|
|
2
|
-
export function loadAndGetRemote(id: any): Promise<any>;
|
|
3
|
-
export function loadRemoteToRegistry(id: any): Promise<void>;
|
|
4
|
-
export function loadSharedToRegistry(id: any): void | Promise<void>;
|
|
5
|
-
export function loadSharedToRegistryAsync(id: any): Promise<void>;
|
|
6
|
-
export function loadSharedToRegistrySync(id: any): void;
|
|
7
|
-
export function getModuleFromRegistry(id: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|