@module-federation/metro-plugin-rnef 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/README.md +4 -2
- package/dist/index.cjs +14 -10
- package/dist/index.js +2 -1
- package/dist/plugin.cjs +14 -10
- package/dist/plugin.js +2 -2
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @module-federation/metro-plugin-rnef
|
|
2
2
|
|
|
3
|
+
> **Deprecated:** RNEF has been renamed to [Rock](https://rockjs.dev). Please use [`@module-federation/metro-plugin-rock`](https://www.npmjs.com/package/@module-federation/metro-plugin-rock) instead. This package will continue to be published for backward compatibility but will not receive new features.
|
|
4
|
+
|
|
3
5
|
Module Federation for React Native Enterprise Framework (RNEF) using Metro bundler. This plugin integrates the `@module-federation/metro` package with RNEF, providing commands to bundle Module Federation host and remotes.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
@@ -15,8 +17,8 @@ npm install --save-dev @module-federation/metro-plugin-rnef
|
|
|
15
17
|
3. Add the plugin to your RNEF configuration (typically in `rnef.config.mjs`):
|
|
16
18
|
|
|
17
19
|
```typescript
|
|
18
|
-
import { pluginMetro } from
|
|
19
|
-
import moduleFederation from
|
|
20
|
+
import { pluginMetro } from '@rnef/plugin-metro';
|
|
21
|
+
import moduleFederation from '@module-federation/metro-plugin-rnef';
|
|
20
22
|
|
|
21
23
|
/** @type {import('@rnef/config').Config} */
|
|
22
24
|
export default {
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
3
|
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
9
13
|
};
|
|
10
14
|
})();
|
|
11
15
|
(()=>{
|
|
@@ -13,7 +17,7 @@ var __webpack_require__ = {};
|
|
|
13
17
|
})();
|
|
14
18
|
(()=>{
|
|
15
19
|
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if (
|
|
20
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
21
|
value: 'Module'
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports1, '__esModule', {
|
|
@@ -24,17 +28,17 @@ var __webpack_require__ = {};
|
|
|
24
28
|
var __webpack_exports__ = {};
|
|
25
29
|
__webpack_require__.r(__webpack_exports__);
|
|
26
30
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
default: ()=>src,
|
|
32
|
+
pluginMetroModuleFederation: ()=>external_plugin_cjs_namespaceObject.pluginMetroModuleFederation
|
|
29
33
|
});
|
|
30
34
|
const external_plugin_cjs_namespaceObject = require("./plugin.cjs");
|
|
31
35
|
const src = external_plugin_cjs_namespaceObject.pluginMetroModuleFederation;
|
|
32
36
|
exports["default"] = __webpack_exports__["default"];
|
|
33
37
|
exports.pluginMetroModuleFederation = __webpack_exports__.pluginMetroModuleFederation;
|
|
34
|
-
for(var
|
|
38
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
35
39
|
"default",
|
|
36
40
|
"pluginMetroModuleFederation"
|
|
37
|
-
].indexOf(
|
|
41
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
38
42
|
Object.defineProperty(exports, '__esModule', {
|
|
39
43
|
value: true
|
|
40
44
|
});
|
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -10,11 +10,15 @@ var __webpack_require__ = {};
|
|
|
10
10
|
};
|
|
11
11
|
})();
|
|
12
12
|
(()=>{
|
|
13
|
-
__webpack_require__.d = (exports1,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
14
|
+
var define = (defs, kind)=>{
|
|
15
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
[kind]: defs[key]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
define(getters, "get");
|
|
21
|
+
define(values, "value");
|
|
18
22
|
};
|
|
19
23
|
})();
|
|
20
24
|
(()=>{
|
|
@@ -22,7 +26,7 @@ var __webpack_require__ = {};
|
|
|
22
26
|
})();
|
|
23
27
|
(()=>{
|
|
24
28
|
__webpack_require__.r = (exports1)=>{
|
|
25
|
-
if (
|
|
29
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
30
|
value: 'Module'
|
|
27
31
|
});
|
|
28
32
|
Object.defineProperty(exports1, '__esModule', {
|
|
@@ -52,7 +56,7 @@ const pluginMetroModuleFederation = (pluginConfig = {})=>(api)=>{
|
|
|
52
56
|
tools_namespaceObject.logger.info(`Bundling Module Federation host for platform ${tools_namespaceObject.color.cyan(args.platform)}`);
|
|
53
57
|
await commands_default().bundleFederatedHost([], commandConfig, args);
|
|
54
58
|
tools_namespaceObject.logger.info('Bundle artifacts available at ...');
|
|
55
|
-
(0, tools_namespaceObject.outro)(
|
|
59
|
+
(0, tools_namespaceObject.outro)('Success 🎉.');
|
|
56
60
|
},
|
|
57
61
|
options: [
|
|
58
62
|
...commands_default().bundleFederatedHostOptions,
|
|
@@ -75,7 +79,7 @@ const pluginMetroModuleFederation = (pluginConfig = {})=>(api)=>{
|
|
|
75
79
|
tools_namespaceObject.logger.info(`Bundling Module Federation remote for platform ${tools_namespaceObject.color.cyan(args.platform)}`);
|
|
76
80
|
await commands_default().bundleFederatedRemote([], commandConfig, args);
|
|
77
81
|
tools_namespaceObject.logger.info('Bundle artifacts available at ...');
|
|
78
|
-
(0, tools_namespaceObject.outro)(
|
|
82
|
+
(0, tools_namespaceObject.outro)('Success 🎉.');
|
|
79
83
|
},
|
|
80
84
|
options: commands_default().bundleFederatedRemoteOptions
|
|
81
85
|
});
|
|
@@ -85,9 +89,9 @@ const pluginMetroModuleFederation = (pluginConfig = {})=>(api)=>{
|
|
|
85
89
|
};
|
|
86
90
|
};
|
|
87
91
|
exports.pluginMetroModuleFederation = __webpack_exports__.pluginMetroModuleFederation;
|
|
88
|
-
for(var
|
|
92
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
89
93
|
"pluginMetroModuleFederation"
|
|
90
|
-
].indexOf(
|
|
94
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
91
95
|
Object.defineProperty(exports, '__esModule', {
|
|
92
96
|
value: true
|
|
93
97
|
});
|
package/dist/plugin.js
CHANGED
|
@@ -14,7 +14,7 @@ const pluginMetroModuleFederation = (pluginConfig = {})=>(api)=>{
|
|
|
14
14
|
logger.info(`Bundling Module Federation host for platform ${color.cyan(args.platform)}`);
|
|
15
15
|
await commands.bundleFederatedHost([], commandConfig, args);
|
|
16
16
|
logger.info('Bundle artifacts available at ...');
|
|
17
|
-
outro(
|
|
17
|
+
outro('Success 🎉.');
|
|
18
18
|
},
|
|
19
19
|
options: [
|
|
20
20
|
...commands.bundleFederatedHostOptions,
|
|
@@ -37,7 +37,7 @@ const pluginMetroModuleFederation = (pluginConfig = {})=>(api)=>{
|
|
|
37
37
|
logger.info(`Bundling Module Federation remote for platform ${color.cyan(args.platform)}`);
|
|
38
38
|
await commands.bundleFederatedRemote([], commandConfig, args);
|
|
39
39
|
logger.info('Bundle artifacts available at ...');
|
|
40
|
-
outro(
|
|
40
|
+
outro('Success 🎉.');
|
|
41
41
|
},
|
|
42
42
|
options: commands.bundleFederatedRemoteOptions
|
|
43
43
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/metro-plugin-rnef",
|
|
3
|
-
"version": "0.0.0-perf-
|
|
4
|
-
"description": "Metro Module Federation plugin for React Native Enterprise Framework (RNEF)",
|
|
3
|
+
"version": "0.0.0-perf-website-code-usage-20260914033703",
|
|
4
|
+
"description": "Metro Module Federation plugin for React Native Enterprise Framework (RNEF). Deprecated: use @module-federation/metro-plugin-rock instead.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rnef",
|
|
7
7
|
"module-federation",
|
|
@@ -35,18 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@rnef/tools": "^0.7.18",
|
|
38
|
-
"@module-federation/metro": "0.0.0-perf-
|
|
38
|
+
"@module-federation/metro": "0.0.0-perf-website-code-usage-20260914033703"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rnef/config": "^0.7.18",
|
|
42
42
|
"@rnef/tools": "^0.7.18",
|
|
43
|
-
"@rslib/core": "^0.
|
|
43
|
+
"@rslib/core": "^0.23.2",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
45
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
44
46
|
"@types/node": "^20.0.0",
|
|
45
|
-
"typescript": "^
|
|
46
|
-
"@module-federation/metro": "0.0.0-perf-
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"@module-federation/metro": "0.0.0-perf-website-code-usage-20260914033703"
|
|
47
49
|
},
|
|
48
50
|
"scripts": {
|
|
49
51
|
"build": "rslib build",
|
|
50
|
-
"typecheck": "tsc --noEmit"
|
|
52
|
+
"typecheck": "tsc --noEmit",
|
|
53
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.{js,ts}\""
|
|
51
54
|
}
|
|
52
55
|
}
|