@module-federation/metro 2.5.1 → 2.7.0
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/dist/commands/bundle-host/index.js +12 -8
- package/dist/commands/bundle-host/index.mjs +3 -4
- 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 +12 -8
- package/dist/commands/bundle-remote/index.mjs +6 -6
- 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.js +15 -11
- package/dist/commands/utils/create-resolver.mjs +1 -2
- package/dist/commands/utils/get-community-plugin.js +12 -8
- package/dist/commands/utils/get-community-plugin.mjs +2 -2
- 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.js +12 -8
- package/dist/commands/utils/path-utils.mjs +1 -2
- package/dist/commands/utils/save-bundle-and-map.js +12 -8
- package/dist/commands/utils/save-bundle-and-map.mjs +1 -2
- package/dist/index.js +14 -10
- package/dist/index.mjs +3 -5
- package/dist/logger.js +12 -8
- package/dist/logger.mjs +2 -3
- package/dist/plugin/babel-transformer.js +12 -8
- package/dist/plugin/babel-transformer.mjs +2 -2
- package/dist/plugin/constants.js +24 -20
- package/dist/plugin/constants.mjs +1 -2
- package/dist/plugin/generators.js +16 -12
- package/dist/plugin/generators.mjs +2 -2
- package/dist/plugin/helpers.js +17 -13
- package/dist/plugin/helpers.mjs +1 -2
- package/dist/plugin/index.js +13 -9
- package/dist/plugin/index.mjs +3 -3
- package/dist/plugin/manifest-middleware.js +12 -8
- package/dist/plugin/manifest-middleware.mjs +1 -2
- package/dist/plugin/manifest.js +19 -16
- package/dist/plugin/manifest.mjs +5 -7
- package/dist/plugin/normalize-extra-options.js +16 -12
- package/dist/plugin/normalize-extra-options.mjs +2 -3
- package/dist/plugin/normalize-options.js +13 -12
- package/dist/plugin/normalize-options.mjs +3 -6
- package/dist/plugin/resolver.js +12 -8
- package/dist/plugin/resolver.mjs +5 -6
- package/dist/plugin/rewrite-request.js +15 -11
- package/dist/plugin/rewrite-request.mjs +4 -5
- package/dist/plugin/serializer.js +13 -9
- package/dist/plugin/serializer.mjs +2 -3
- package/dist/plugin/validate-options.js +12 -8
- package/dist/plugin/validate-options.mjs +1 -2
- 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.js +103 -122
- package/dist/utils/federated-remote-types.mjs +2 -3
- package/dist/utils/index.js +14 -10
- package/dist/utils/index.mjs +3 -5
- package/dist/utils/metro-compat.js +19 -15
- package/dist/utils/metro-compat.mjs +2 -2
- package/dist/utils/vm-manager.js +14 -12
- package/dist/utils/vm-manager.mjs +3 -6
- package/package.json +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/metro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Module Federation for Metro bundler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module-federation",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@expo/metro-runtime": "^5.0.4",
|
|
60
|
-
"@module-federation/dts-plugin": "2.
|
|
61
|
-
"@module-federation/
|
|
62
|
-
"@module-federation/
|
|
60
|
+
"@module-federation/dts-plugin": "2.7.0",
|
|
61
|
+
"@module-federation/runtime": "2.7.0",
|
|
62
|
+
"@module-federation/sdk": "2.7.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@babel/types": "^7.25.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@rslib/core": "^0.
|
|
83
|
+
"@rslib/core": "^0.23.2",
|
|
84
84
|
"@typescript-eslint/eslint-plugin": "8.54.0",
|
|
85
85
|
"@typescript-eslint/parser": "8.54.0",
|
|
86
86
|
"@types/node": "^20.19.5",
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
"react": "19.1.0",
|
|
95
95
|
"react-native": "0.80.0",
|
|
96
96
|
"ts-node": "^10.9.2",
|
|
97
|
-
"typescript": "^
|
|
97
|
+
"typescript": "^6.0.3"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"build": "rslib build",
|
|
101
|
-
"test": "
|
|
102
|
-
"test:watch": "
|
|
101
|
+
"test": "rstest",
|
|
102
|
+
"test:watch": "rstest --watch",
|
|
103
103
|
"typecheck": "tsc --noEmit",
|
|
104
104
|
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.{ts,tsx,js,jsx}\""
|
|
105
105
|
}
|