@module-federation/metro 0.0.0-chore-bump-node-22-20260710161714
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/LICENSE +21 -0
- package/README.md +11 -0
- package/babel-plugin/index.js +115 -0
- package/babel-plugin/patch-initialize-core.js +61 -0
- package/babel-plugin/patch-require.js +174 -0
- package/bootstrap/index.d.ts +1 -0
- package/bootstrap/index.js +1 -0
- package/dist/babel/transformer.js +15 -0
- package/dist/commands/bundle-host/index.d.ts +13 -0
- package/dist/commands/bundle-host/index.js +100 -0
- package/dist/commands/bundle-host/index.mjs +47 -0
- package/dist/commands/bundle-host/options.d.ts +5 -0
- package/dist/commands/bundle-host/options.js +43 -0
- package/dist/commands/bundle-host/options.mjs +6 -0
- package/dist/commands/bundle-host/types.d.ts +22 -0
- package/dist/commands/bundle-host/types.js +18 -0
- package/dist/commands/bundle-host/types.mjs +1 -0
- package/dist/commands/bundle-remote/index.d.ts +12 -0
- package/dist/commands/bundle-remote/index.js +241 -0
- package/dist/commands/bundle-remote/index.mjs +190 -0
- package/dist/commands/bundle-remote/options.d.ts +32 -0
- package/dist/commands/bundle-remote/options.js +113 -0
- package/dist/commands/bundle-remote/options.mjs +66 -0
- package/dist/commands/bundle-remote/types.d.ts +16 -0
- package/dist/commands/bundle-remote/types.js +18 -0
- package/dist/commands/bundle-remote/types.mjs +1 -0
- package/dist/commands/index.d.ts +48 -0
- package/dist/commands/index.js +76 -0
- package/dist/commands/index.mjs +13 -0
- package/dist/commands/types.d.ts +14 -0
- package/dist/commands/types.js +18 -0
- package/dist/commands/types.mjs +1 -0
- package/dist/commands/utils/create-module-path-remapper.d.ts +7 -0
- package/dist/commands/utils/create-module-path-remapper.js +68 -0
- package/dist/commands/utils/create-module-path-remapper.mjs +31 -0
- package/dist/commands/utils/create-resolver.d.ts +20 -0
- package/dist/commands/utils/create-resolver.js +61 -0
- package/dist/commands/utils/create-resolver.mjs +24 -0
- package/dist/commands/utils/get-community-plugin.d.ts +28 -0
- package/dist/commands/utils/get-community-plugin.js +53 -0
- package/dist/commands/utils/get-community-plugin.mjs +17 -0
- package/dist/commands/utils/load-metro-config.d.ts +3 -0
- package/dist/commands/utils/load-metro-config.js +85 -0
- package/dist/commands/utils/load-metro-config.mjs +41 -0
- 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 +5 -0
- package/dist/commands/utils/save-bundle-and-map.js +80 -0
- package/dist/commands/utils/save-bundle-and-map.mjs +33 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +44 -0
- package/dist/index.mjs +3 -0
- package/dist/logger.d.ts +2 -0
- package/dist/logger.js +43 -0
- package/dist/logger.mjs +6 -0
- package/dist/modules/HMRClient.ts +31 -0
- package/dist/modules/HMRClientShim.ts +1 -0
- package/dist/modules/asyncRequire.ts +156 -0
- package/dist/modules/asyncStartup.tsx +43 -0
- package/dist/modules/getDevServer.ts +15 -0
- package/dist/modules/metroCorePlugin.ts +87 -0
- package/dist/plugin/babel-transformer.d.ts +11 -0
- package/dist/plugin/babel-transformer.js +72 -0
- package/dist/plugin/babel-transformer.mjs +25 -0
- package/dist/plugin/constants.d.ts +10 -0
- package/dist/plugin/constants.js +76 -0
- package/dist/plugin/constants.mjs +12 -0
- package/dist/plugin/generators.d.ts +13 -0
- package/dist/plugin/generators.js +164 -0
- package/dist/plugin/generators.mjs +102 -0
- package/dist/plugin/helpers.d.ts +8 -0
- package/dist/plugin/helpers.js +127 -0
- package/dist/plugin/helpers.mjs +58 -0
- package/dist/plugin/index.d.ts +11 -0
- package/dist/plugin/index.js +219 -0
- package/dist/plugin/index.mjs +172 -0
- 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 +16 -0
- package/dist/plugin/manifest.js +246 -0
- package/dist/plugin/manifest.mjs +185 -0
- package/dist/plugin/normalize-extra-options.d.ts +8 -0
- package/dist/plugin/normalize-extra-options.js +50 -0
- package/dist/plugin/normalize-extra-options.mjs +13 -0
- package/dist/plugin/normalize-options.d.ts +7 -0
- package/dist/plugin/normalize-options.js +139 -0
- package/dist/plugin/normalize-options.mjs +92 -0
- package/dist/plugin/resolver.d.ts +26 -0
- package/dist/plugin/resolver.js +203 -0
- package/dist/plugin/resolver.mjs +159 -0
- package/dist/plugin/rewrite-request.d.ts +14 -0
- package/dist/plugin/rewrite-request.js +89 -0
- package/dist/plugin/rewrite-request.mjs +42 -0
- package/dist/plugin/serializer.d.ts +6 -0
- package/dist/plugin/serializer.js +191 -0
- package/dist/plugin/serializer.mjs +144 -0
- package/dist/plugin/validate-options.d.ts +2 -0
- package/dist/plugin/validate-options.js +165 -0
- package/dist/plugin/validate-options.mjs +117 -0
- package/dist/runtime/host-entry.js +3 -0
- package/dist/runtime/init-host.js +31 -0
- package/dist/runtime/remote-entry.js +57 -0
- package/dist/runtime/remote-hmr.js +19 -0
- package/dist/runtime/remote-module-registry.js +57 -0
- package/dist/runtime/remote-module.js +2 -0
- package/dist/types.d.ts +26 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/utils/errors.d.ts +8 -0
- package/dist/utils/errors.js +54 -0
- package/dist/utils/errors.mjs +14 -0
- 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.d.ts +2 -0
- package/dist/utils/index.js +47 -0
- package/dist/utils/index.mjs +3 -0
- 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 +21 -0
- package/dist/utils/vm-manager.js +118 -0
- package/dist/utils/vm-manager.mjs +70 -0
- package/package.json +106 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import __rslib_shim_module__ from "node:module";
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
|
+
function resolveAndImport(metro83Path, metro82Path) {
|
|
4
|
+
let resolvedPath;
|
|
5
|
+
try {
|
|
6
|
+
resolvedPath = require.resolve(metro83Path);
|
|
7
|
+
} catch {
|
|
8
|
+
try {
|
|
9
|
+
resolvedPath = require.resolve(metro82Path);
|
|
10
|
+
} catch {
|
|
11
|
+
throw new Error(`Could not resolve 'metro' module. Tried:\n - ${metro83Path}\n - ${metro82Path}\nEnsure 'metro' is installed.`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return require(resolvedPath);
|
|
15
|
+
}
|
|
16
|
+
function getDefaultExport(mod) {
|
|
17
|
+
if (null != mod && 'object' == typeof mod && 'default' in mod) return mod.default;
|
|
18
|
+
return mod;
|
|
19
|
+
}
|
|
20
|
+
const Server = getDefaultExport(resolveAndImport('metro/private/Server', 'metro/src/Server'));
|
|
21
|
+
const baseJSBundle = getDefaultExport(resolveAndImport('metro/private/DeltaBundler/Serializers/baseJSBundle', 'metro/src/DeltaBundler/Serializers/baseJSBundle'));
|
|
22
|
+
const CountingSet = getDefaultExport(resolveAndImport('metro/private/lib/CountingSet', 'metro/src/lib/CountingSet'));
|
|
23
|
+
const bundleToString = getDefaultExport(resolveAndImport('metro/private/lib/bundleToString', 'metro/src/lib/bundleToString'));
|
|
24
|
+
const relativizeSourceMapModule = resolveAndImport('metro/private/lib/relativizeSourceMap', 'metro/src/lib/relativizeSourceMap');
|
|
25
|
+
const relativizeSourceMapInline = relativizeSourceMapModule.relativizeSourceMapInline || getDefaultExport(relativizeSourceMapModule);
|
|
26
|
+
export { CountingSet, Server, baseJSBundle, bundleToString, relativizeSourceMapInline };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { MetroConfig, ServerConfigT, TransformerConfigT } from 'metro-config';
|
|
2
|
+
import type { Server as MetroServer } from './metro-compat';
|
|
3
|
+
type EnhanceMiddleware = ServerConfigT['enhanceMiddleware'];
|
|
4
|
+
type GetTransformOptions = TransformerConfigT['getTransformOptions'];
|
|
5
|
+
type Bundler = ReturnType<ReturnType<MetroServer['getBundler']>['getBundler']>;
|
|
6
|
+
export declare class VirtualModuleManager {
|
|
7
|
+
private metroConfig;
|
|
8
|
+
private options;
|
|
9
|
+
private setupFinished;
|
|
10
|
+
private virtualModules;
|
|
11
|
+
constructor(metroConfig: MetroConfig, options?: {
|
|
12
|
+
forceWriteFileSystem?: boolean;
|
|
13
|
+
});
|
|
14
|
+
registerVirtualModule(filePath: string, generator: () => string): void;
|
|
15
|
+
getMiddleware(): EnhanceMiddleware;
|
|
16
|
+
getTransformOptions(): GetTransformOptions;
|
|
17
|
+
setup(bundler: Bundler): void;
|
|
18
|
+
private ensureFileSystemPatched;
|
|
19
|
+
private ensureBundlerPatched;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
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");
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
26
|
+
})();
|
|
27
|
+
(()=>{
|
|
28
|
+
__webpack_require__.r = (exports1)=>{
|
|
29
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
30
|
+
value: 'Module'
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
33
|
+
value: true
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
var __webpack_exports__ = {};
|
|
38
|
+
__webpack_require__.r(__webpack_exports__);
|
|
39
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
40
|
+
VirtualModuleManager: ()=>VirtualModuleManager
|
|
41
|
+
});
|
|
42
|
+
const external_node_fs_namespaceObject = require("node:fs");
|
|
43
|
+
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
44
|
+
const external_node_path_namespaceObject = require("node:path");
|
|
45
|
+
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
46
|
+
class VirtualModuleManager {
|
|
47
|
+
registerVirtualModule(filePath, generator) {
|
|
48
|
+
const moduleCode = generator();
|
|
49
|
+
if (this.virtualModules.get(filePath) === moduleCode) return;
|
|
50
|
+
this.virtualModules.set(filePath, moduleCode);
|
|
51
|
+
if (this.options.forceWriteFileSystem) {
|
|
52
|
+
external_node_fs_default().mkdirSync(external_node_path_default().dirname(filePath), {
|
|
53
|
+
recursive: true
|
|
54
|
+
});
|
|
55
|
+
external_node_fs_default().writeFileSync(filePath, moduleCode);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
getMiddleware() {
|
|
59
|
+
return (middleware, metroServer)=>{
|
|
60
|
+
const bundler = metroServer.getBundler().getBundler();
|
|
61
|
+
this.setup(bundler);
|
|
62
|
+
const originalMiddleware = this.metroConfig.server?.enhanceMiddleware;
|
|
63
|
+
return originalMiddleware ? originalMiddleware(middleware, metroServer) : middleware;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
getTransformOptions() {
|
|
67
|
+
return async (...args)=>{
|
|
68
|
+
if (null === this.setupFinished) throw new Error('Expected virtual module setup to be finished');
|
|
69
|
+
await this.setupFinished;
|
|
70
|
+
const originalGetTransformOptions = this.metroConfig.transformer?.getTransformOptions;
|
|
71
|
+
if (originalGetTransformOptions) return originalGetTransformOptions(...args);
|
|
72
|
+
return {};
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
setup(bundler) {
|
|
76
|
+
this.setupFinished = (async ()=>{
|
|
77
|
+
const graph = await bundler.getDependencyGraph();
|
|
78
|
+
this.ensureFileSystemPatched(graph._fileSystem);
|
|
79
|
+
this.ensureBundlerPatched(bundler);
|
|
80
|
+
return true;
|
|
81
|
+
})();
|
|
82
|
+
}
|
|
83
|
+
ensureFileSystemPatched(fs) {
|
|
84
|
+
if (!fs.getSha1.__vm__patched) {
|
|
85
|
+
const original_getSha1 = fs.getSha1.bind(fs);
|
|
86
|
+
fs.getSha1 = (filename)=>{
|
|
87
|
+
if (this.virtualModules.has(filename)) return `${filename}-${Date.now()}`;
|
|
88
|
+
return original_getSha1(filename);
|
|
89
|
+
};
|
|
90
|
+
fs.getSha1.__vm__patched = true;
|
|
91
|
+
}
|
|
92
|
+
return fs;
|
|
93
|
+
}
|
|
94
|
+
ensureBundlerPatched(bundler) {
|
|
95
|
+
if (bundler.transformFile.__vm__patched) return;
|
|
96
|
+
const transformFile = bundler.transformFile.bind(bundler);
|
|
97
|
+
bundler.transformFile = async (filePath, transformOptions, fileBuffer)=>{
|
|
98
|
+
let buffer = fileBuffer;
|
|
99
|
+
const virtualModule = this.virtualModules.get(filePath);
|
|
100
|
+
if (virtualModule) buffer = Buffer.from(virtualModule);
|
|
101
|
+
return transformFile(filePath, transformOptions, buffer);
|
|
102
|
+
};
|
|
103
|
+
bundler.transformFile.__vm__patched = true;
|
|
104
|
+
}
|
|
105
|
+
constructor(metroConfig, options = {}){
|
|
106
|
+
this.metroConfig = metroConfig;
|
|
107
|
+
this.options = options;
|
|
108
|
+
this.setupFinished = null;
|
|
109
|
+
this.virtualModules = new Map();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.VirtualModuleManager = __webpack_exports__.VirtualModuleManager;
|
|
113
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
114
|
+
"VirtualModuleManager"
|
|
115
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
116
|
+
Object.defineProperty(exports, '__esModule', {
|
|
117
|
+
value: true
|
|
118
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
import node_fs from "node:fs";
|
|
3
|
+
import node_path from "node:path";
|
|
4
|
+
class VirtualModuleManager {
|
|
5
|
+
registerVirtualModule(filePath, generator) {
|
|
6
|
+
const moduleCode = generator();
|
|
7
|
+
if (this.virtualModules.get(filePath) === moduleCode) return;
|
|
8
|
+
this.virtualModules.set(filePath, moduleCode);
|
|
9
|
+
if (this.options.forceWriteFileSystem) {
|
|
10
|
+
node_fs.mkdirSync(node_path.dirname(filePath), {
|
|
11
|
+
recursive: true
|
|
12
|
+
});
|
|
13
|
+
node_fs.writeFileSync(filePath, moduleCode);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
getMiddleware() {
|
|
17
|
+
return (middleware, metroServer)=>{
|
|
18
|
+
const bundler = metroServer.getBundler().getBundler();
|
|
19
|
+
this.setup(bundler);
|
|
20
|
+
const originalMiddleware = this.metroConfig.server?.enhanceMiddleware;
|
|
21
|
+
return originalMiddleware ? originalMiddleware(middleware, metroServer) : middleware;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
getTransformOptions() {
|
|
25
|
+
return async (...args)=>{
|
|
26
|
+
if (null === this.setupFinished) throw new Error('Expected virtual module setup to be finished');
|
|
27
|
+
await this.setupFinished;
|
|
28
|
+
const originalGetTransformOptions = this.metroConfig.transformer?.getTransformOptions;
|
|
29
|
+
if (originalGetTransformOptions) return originalGetTransformOptions(...args);
|
|
30
|
+
return {};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
setup(bundler) {
|
|
34
|
+
this.setupFinished = (async ()=>{
|
|
35
|
+
const graph = await bundler.getDependencyGraph();
|
|
36
|
+
this.ensureFileSystemPatched(graph._fileSystem);
|
|
37
|
+
this.ensureBundlerPatched(bundler);
|
|
38
|
+
return true;
|
|
39
|
+
})();
|
|
40
|
+
}
|
|
41
|
+
ensureFileSystemPatched(fs) {
|
|
42
|
+
if (!fs.getSha1.__vm__patched) {
|
|
43
|
+
const original_getSha1 = fs.getSha1.bind(fs);
|
|
44
|
+
fs.getSha1 = (filename)=>{
|
|
45
|
+
if (this.virtualModules.has(filename)) return `${filename}-${Date.now()}`;
|
|
46
|
+
return original_getSha1(filename);
|
|
47
|
+
};
|
|
48
|
+
fs.getSha1.__vm__patched = true;
|
|
49
|
+
}
|
|
50
|
+
return fs;
|
|
51
|
+
}
|
|
52
|
+
ensureBundlerPatched(bundler) {
|
|
53
|
+
if (bundler.transformFile.__vm__patched) return;
|
|
54
|
+
const transformFile = bundler.transformFile.bind(bundler);
|
|
55
|
+
bundler.transformFile = async (filePath, transformOptions, fileBuffer)=>{
|
|
56
|
+
let buffer = fileBuffer;
|
|
57
|
+
const virtualModule = this.virtualModules.get(filePath);
|
|
58
|
+
if (virtualModule) buffer = Buffer.from(virtualModule);
|
|
59
|
+
return transformFile(filePath, transformOptions, buffer);
|
|
60
|
+
};
|
|
61
|
+
bundler.transformFile.__vm__patched = true;
|
|
62
|
+
}
|
|
63
|
+
constructor(metroConfig, options = {}){
|
|
64
|
+
this.metroConfig = metroConfig;
|
|
65
|
+
this.options = options;
|
|
66
|
+
this.setupFinished = null;
|
|
67
|
+
this.virtualModules = new Map();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export { VirtualModuleManager };
|
package/package.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@module-federation/metro",
|
|
3
|
+
"version": "0.0.0-chore-bump-node-22-20260710161714",
|
|
4
|
+
"description": "Module Federation for Metro bundler",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"module-federation",
|
|
7
|
+
"metro",
|
|
8
|
+
"react-native"
|
|
9
|
+
],
|
|
10
|
+
"type": "commonjs",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"contributors": [
|
|
13
|
+
"Jakub Romańczyk <j.romanczyk@gmail.com> (https://github.com/jbroma)",
|
|
14
|
+
"Kacper Wiszczuk <kacperwiszczuk@gmail.com> (https://github.com/esemesek)"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public",
|
|
18
|
+
"registry": "https://registry.npmjs.org/"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/module-federation/core.git",
|
|
23
|
+
"directory": "packages/metro-core"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/",
|
|
27
|
+
"babel-plugin/",
|
|
28
|
+
"bootstrap/"
|
|
29
|
+
],
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"module": "./dist/index.mjs",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.mjs",
|
|
37
|
+
"require": "./dist/index.js",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./commands": {
|
|
41
|
+
"types": "./dist/commands/index.d.ts",
|
|
42
|
+
"import": "./dist/commands/index.mjs",
|
|
43
|
+
"require": "./dist/commands/index.js",
|
|
44
|
+
"default": "./dist/commands/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./types": {
|
|
47
|
+
"types": "./dist/types.d.ts",
|
|
48
|
+
"import": "./dist/types.mjs",
|
|
49
|
+
"require": "./dist/types.js",
|
|
50
|
+
"default": "./dist/types.js"
|
|
51
|
+
},
|
|
52
|
+
"./babel-plugin": "./babel-plugin/index.js",
|
|
53
|
+
"./babel-plugin/*": "./babel-plugin/*.js",
|
|
54
|
+
"./bootstrap": {
|
|
55
|
+
"default": "./dist/modules/asyncStartup.tsx"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@expo/metro-runtime": "^5.0.4",
|
|
60
|
+
"@module-federation/dts-plugin": "0.0.0-chore-bump-node-22-20260710161714",
|
|
61
|
+
"@module-federation/runtime": "0.0.0-chore-bump-node-22-20260710161714",
|
|
62
|
+
"@module-federation/sdk": "0.0.0-chore-bump-node-22-20260710161714"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@babel/types": "^7.25.0",
|
|
66
|
+
"metro": "^0.82.1",
|
|
67
|
+
"metro-config": "^0.82.1",
|
|
68
|
+
"metro-file-map": "^0.82.1",
|
|
69
|
+
"metro-resolver": "^0.82.1",
|
|
70
|
+
"metro-source-map": "^0.82.1",
|
|
71
|
+
"react": ">=19.0.0",
|
|
72
|
+
"react-native": ">=0.79.0"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"react-native": {
|
|
79
|
+
"optional": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@rslib/core": "^0.23.2",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "8.54.0",
|
|
85
|
+
"@typescript-eslint/parser": "8.54.0",
|
|
86
|
+
"@types/node": "^20.19.5",
|
|
87
|
+
"@types/react": "^19.1.0",
|
|
88
|
+
"memfs": "4.46.0",
|
|
89
|
+
"metro": "^0.82.1",
|
|
90
|
+
"metro-config": "^0.82.1",
|
|
91
|
+
"metro-file-map": "^0.82.1",
|
|
92
|
+
"metro-resolver": "^0.82.1",
|
|
93
|
+
"metro-source-map": "^0.82.1",
|
|
94
|
+
"react": "19.1.0",
|
|
95
|
+
"react-native": "0.80.0",
|
|
96
|
+
"ts-node": "^10.9.2",
|
|
97
|
+
"typescript": "^6.0.3"
|
|
98
|
+
},
|
|
99
|
+
"scripts": {
|
|
100
|
+
"build": "rslib build",
|
|
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}\""
|
|
105
|
+
}
|
|
106
|
+
}
|