@module-federation/esbuild 0.0.109 → 0.0.111
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/adapters/lib/collect-exports.js +15 -13
- package/dist/adapters/lib/collect-exports.mjs +0 -7
- package/dist/adapters/lib/commonjs.js +22 -25
- package/dist/adapters/lib/commonjs.mjs +13 -41
- package/dist/adapters/lib/containerPlugin.js +14 -13
- package/dist/adapters/lib/containerPlugin.mjs +1 -4
- package/dist/adapters/lib/containerReference.js +14 -13
- package/dist/adapters/lib/containerReference.mjs +1 -4
- package/dist/adapters/lib/lexer.js +17 -14
- package/dist/adapters/lib/lexer.mjs +0 -2
- package/dist/adapters/lib/linkRemotesPlugin.js +13 -11
- package/dist/adapters/lib/linkRemotesPlugin.mjs +0 -2
- package/dist/adapters/lib/manifest.js +17 -16
- package/dist/adapters/lib/manifest.mjs +4 -9
- package/dist/adapters/lib/plugin.js +16 -16
- package/dist/adapters/lib/plugin.mjs +8 -44
- package/dist/adapters/lib/react-replacements.js +19 -14
- package/dist/adapters/lib/react-replacements.mjs +1 -2
- package/dist/adapters/lib/transform.js +13 -11
- package/dist/adapters/lib/transform.mjs +4 -8
- package/dist/adapters/lib/utils.js +20 -16
- package/dist/adapters/lib/utils.mjs +1 -3
- package/dist/build.js +47 -46
- package/dist/build.mjs +1 -2
- package/dist/index.js +17 -13
- package/dist/index.mjs +2 -4
- package/dist/lib/config/configuration-context.js +19 -16
- package/dist/lib/config/configuration-context.mjs +0 -2
- package/dist/lib/config/federation-config.js +2 -4
- package/dist/lib/config/federation-config.mjs +1 -2
- package/dist/lib/config/share-utils.js +24 -23
- package/dist/lib/config/share-utils.mjs +1 -10
- package/dist/lib/config/with-native-federation.js +13 -11
- package/dist/lib/config/with-native-federation.mjs +0 -5
- package/dist/lib/core/build-adapter.js +13 -11
- package/dist/lib/core/build-adapter.mjs +0 -2
- package/dist/lib/core/createContainerTemplate.js +18 -14
- package/dist/lib/core/createContainerTemplate.mjs +0 -2
- package/dist/lib/core/default-skip-list.js +21 -17
- package/dist/lib/core/default-skip-list.mjs +0 -2
- package/dist/lib/core/federation-options.js +2 -4
- package/dist/lib/core/federation-options.mjs +1 -2
- package/dist/lib/core/get-externals.js +17 -14
- package/dist/lib/core/get-externals.mjs +0 -2
- package/dist/lib/core/load-federation-config.js +13 -11
- package/dist/lib/core/load-federation-config.mjs +4 -8
- package/dist/lib/core/write-federation-info.js +13 -11
- package/dist/lib/core/write-federation-info.mjs +4 -8
- package/dist/lib/utils/logger.js +15 -13
- package/dist/lib/utils/logger.mjs +0 -2
- package/dist/lib/utils/mapped-paths.js +14 -13
- package/dist/lib/utils/mapped-paths.mjs +8 -14
- package/dist/lib/utils/normalize.js +17 -14
- package/dist/lib/utils/normalize.mjs +0 -2
- package/dist/lib/utils/package-info.js +21 -20
- package/dist/lib/utils/package-info.mjs +35 -41
- package/dist/plugin.js +19 -18
- package/dist/plugin.mjs +1 -2
- package/dist/rslib-runtime.mjs +31 -0
- package/package.json +6 -5
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,20 +37,19 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
// ESM COMPAT FLAG
|
|
40
42
|
__webpack_require__.r(__webpack_exports__);
|
|
41
43
|
|
|
42
44
|
// EXPORTS
|
|
43
45
|
__webpack_require__.d(__webpack_exports__, {
|
|
46
|
+
_getPackageInfo: () => (/* binding */ _getPackageInfo),
|
|
44
47
|
expandFolders: () => (/* binding */ expandFolders),
|
|
45
|
-
getPackageInfo: () => (/* binding */ getPackageInfo),
|
|
46
|
-
getPackageJsonFiles: () => (/* binding */ getPackageJsonFiles),
|
|
47
|
-
getVersionMaps: () => (/* binding */ getVersionMaps),
|
|
48
48
|
findDepPackageJson: () => (/* binding */ findDepPackageJson),
|
|
49
49
|
findPackageJsonFiles: () => (/* binding */ findPackageJsonFiles),
|
|
50
|
-
|
|
50
|
+
getPackageInfo: () => (/* binding */ getPackageInfo),
|
|
51
|
+
getPackageJsonFiles: () => (/* binding */ getPackageJsonFiles),
|
|
52
|
+
getVersionMaps: () => (/* binding */ getVersionMaps)
|
|
51
53
|
});
|
|
52
54
|
|
|
53
55
|
;// CONCATENATED MODULE: external "fs"
|
|
@@ -144,7 +146,6 @@ function findDepPackageJson(packageName, projectRoot) {
|
|
|
144
146
|
return mainPkgJsonPath;
|
|
145
147
|
}
|
|
146
148
|
function _getPackageInfo(packageName, directory) {
|
|
147
|
-
var _mainPkgJson_exports, _mainPkgJson_exports_relSecondaryPath, _mainPkgJson_exports1, _mainPkgJson_exports_relSecondaryPath1, _mainPkgJson_exports2, _mainPkgJson_exports_relSecondaryPath2, _mainPkgJson_exports3;
|
|
148
149
|
const mainPkgName = getPkgFolder(packageName);
|
|
149
150
|
const mainPkgJsonPath = findDepPackageJson(packageName, directory);
|
|
150
151
|
if (!mainPkgJsonPath) {
|
|
@@ -164,7 +165,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
164
165
|
} else {
|
|
165
166
|
relSecondaryPath = './' + relSecondaryPath.replace(/\\/g, '/');
|
|
166
167
|
}
|
|
167
|
-
let cand = mainPkgJson
|
|
168
|
+
let cand = mainPkgJson?.exports?.[relSecondaryPath];
|
|
168
169
|
if (typeof cand === 'string') {
|
|
169
170
|
return {
|
|
170
171
|
entryPoint: external_path_namespaceObject.join(mainPkgPath, cand),
|
|
@@ -173,7 +174,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
173
174
|
esm
|
|
174
175
|
};
|
|
175
176
|
}
|
|
176
|
-
cand = mainPkgJson
|
|
177
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.import;
|
|
177
178
|
if (typeof cand === 'object') {
|
|
178
179
|
if (cand.module) {
|
|
179
180
|
cand = cand.module;
|
|
@@ -204,7 +205,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
204
205
|
esm
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
|
-
cand = mainPkgJson
|
|
208
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.module;
|
|
208
209
|
if (typeof cand === 'object') {
|
|
209
210
|
if (cand.module) {
|
|
210
211
|
cand = cand.module;
|
|
@@ -224,7 +225,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
224
225
|
esm
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
|
-
cand = mainPkgJson
|
|
228
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.default;
|
|
228
229
|
if (cand) {
|
|
229
230
|
if (typeof cand === 'object') {
|
|
230
231
|
if (cand.module) {
|
|
@@ -316,9 +317,9 @@ exports.findPackageJsonFiles = __webpack_exports__.findPackageJsonFiles;
|
|
|
316
317
|
exports.getPackageInfo = __webpack_exports__.getPackageInfo;
|
|
317
318
|
exports.getPackageJsonFiles = __webpack_exports__.getPackageJsonFiles;
|
|
318
319
|
exports.getVersionMaps = __webpack_exports__.getVersionMaps;
|
|
319
|
-
for(var
|
|
320
|
-
if(["_getPackageInfo","expandFolders","findDepPackageJson","findPackageJsonFiles","getPackageInfo","getPackageJsonFiles","getVersionMaps"].indexOf(
|
|
321
|
-
exports[
|
|
320
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
321
|
+
if(["_getPackageInfo","expandFolders","findDepPackageJson","findPackageJsonFiles","getPackageInfo","getPackageJsonFiles","getVersionMaps"].indexOf(__rspack_i) === -1) {
|
|
322
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
322
323
|
}
|
|
323
324
|
}
|
|
324
325
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "fs";
|
|
2
|
-
import { dirname, join, relative } from "path";
|
|
3
1
|
import { logger } from "./logger.mjs";
|
|
4
2
|
import { normalize } from "./normalize.mjs";
|
|
5
3
|
|
|
6
|
-
|
|
4
|
+
import * as __rspack_external_fs from "fs";
|
|
5
|
+
import * as __rspack_external_path from "path";
|
|
7
6
|
|
|
8
|
-
;// CONCATENATED MODULE: external "path"
|
|
9
7
|
|
|
10
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
11
8
|
|
|
12
|
-
;// CONCATENATED MODULE: external "./normalize.mjs"
|
|
13
9
|
|
|
14
|
-
;// CONCATENATED MODULE: ./src/lib/utils/package-info.ts
|
|
15
10
|
|
|
16
11
|
|
|
17
12
|
|
|
18
13
|
|
|
19
14
|
const packageCache = {};
|
|
20
15
|
function findPackageJsonFiles(project, workspace) {
|
|
21
|
-
return expandFolders(project, workspace).map((f)=>join(f, 'package.json')).filter((f)=>existsSync(f));
|
|
16
|
+
return expandFolders(project, workspace).map((f)=>__rspack_external_path.join(f, 'package.json')).filter((f)=>__rspack_external_fs.existsSync(f));
|
|
22
17
|
}
|
|
23
18
|
function expandFolders(child, parent) {
|
|
24
19
|
const result = [];
|
|
@@ -30,7 +25,7 @@ function expandFolders(child, parent) {
|
|
|
30
25
|
let current = child;
|
|
31
26
|
while(current !== parent){
|
|
32
27
|
result.push(current);
|
|
33
|
-
const cand = normalize(dirname(current), true);
|
|
28
|
+
const cand = normalize(__rspack_external_path.dirname(current), true);
|
|
34
29
|
if (cand === current) {
|
|
35
30
|
break;
|
|
36
31
|
}
|
|
@@ -66,8 +61,8 @@ function getPackageJsonFiles(project, workspace) {
|
|
|
66
61
|
return maps;
|
|
67
62
|
}
|
|
68
63
|
maps = findPackageJsonFiles(project, workspace).map((f)=>{
|
|
69
|
-
const content = JSON.parse(readFileSync(f, 'utf-8'));
|
|
70
|
-
const directory = normalize(dirname(f), true);
|
|
64
|
+
const content = JSON.parse(__rspack_external_fs.readFileSync(f, 'utf-8'));
|
|
65
|
+
const directory = normalize(__rspack_external_path.dirname(f), true);
|
|
71
66
|
const result = {
|
|
72
67
|
content,
|
|
73
68
|
directory
|
|
@@ -79,31 +74,30 @@ function getPackageJsonFiles(project, workspace) {
|
|
|
79
74
|
}
|
|
80
75
|
function findDepPackageJson(packageName, projectRoot) {
|
|
81
76
|
const mainPkgName = getPkgFolder(packageName);
|
|
82
|
-
let mainPkgPath = join(projectRoot, 'node_modules', mainPkgName);
|
|
83
|
-
let mainPkgJsonPath = join(mainPkgPath, 'package.json');
|
|
77
|
+
let mainPkgPath = __rspack_external_path.join(projectRoot, 'node_modules', mainPkgName);
|
|
78
|
+
let mainPkgJsonPath = __rspack_external_path.join(mainPkgPath, 'package.json');
|
|
84
79
|
let directory = projectRoot;
|
|
85
|
-
while(dirname(directory) !== directory){
|
|
86
|
-
if (existsSync(mainPkgJsonPath)) {
|
|
80
|
+
while(__rspack_external_path.dirname(directory) !== directory){
|
|
81
|
+
if (__rspack_external_fs.existsSync(mainPkgJsonPath)) {
|
|
87
82
|
break;
|
|
88
83
|
}
|
|
89
|
-
directory = normalize(dirname(directory), true);
|
|
90
|
-
mainPkgPath = join(directory, 'node_modules', mainPkgName);
|
|
91
|
-
mainPkgJsonPath = join(mainPkgPath, 'package.json');
|
|
84
|
+
directory = normalize(__rspack_external_path.dirname(directory), true);
|
|
85
|
+
mainPkgPath = __rspack_external_path.join(directory, 'node_modules', mainPkgName);
|
|
86
|
+
mainPkgJsonPath = __rspack_external_path.join(mainPkgPath, 'package.json');
|
|
92
87
|
}
|
|
93
|
-
if (!existsSync(mainPkgJsonPath)) {
|
|
88
|
+
if (!__rspack_external_fs.existsSync(mainPkgJsonPath)) {
|
|
94
89
|
logger.verbose('No package.json found for ' + packageName + ' in ' + mainPkgPath);
|
|
95
90
|
return null;
|
|
96
91
|
}
|
|
97
92
|
return mainPkgJsonPath;
|
|
98
93
|
}
|
|
99
94
|
function _getPackageInfo(packageName, directory) {
|
|
100
|
-
var _mainPkgJson_exports, _mainPkgJson_exports_relSecondaryPath, _mainPkgJson_exports1, _mainPkgJson_exports_relSecondaryPath1, _mainPkgJson_exports2, _mainPkgJson_exports_relSecondaryPath2, _mainPkgJson_exports3;
|
|
101
95
|
const mainPkgName = getPkgFolder(packageName);
|
|
102
96
|
const mainPkgJsonPath = findDepPackageJson(packageName, directory);
|
|
103
97
|
if (!mainPkgJsonPath) {
|
|
104
98
|
return null;
|
|
105
99
|
}
|
|
106
|
-
const mainPkgPath = dirname(mainPkgJsonPath);
|
|
100
|
+
const mainPkgPath = __rspack_external_path.dirname(mainPkgJsonPath);
|
|
107
101
|
const mainPkgJson = readJson(mainPkgJsonPath);
|
|
108
102
|
const version = mainPkgJson['version'];
|
|
109
103
|
const esm = mainPkgJson['type'] === 'module';
|
|
@@ -111,22 +105,22 @@ function _getPackageInfo(packageName, directory) {
|
|
|
111
105
|
logger.warn('No version found for ' + packageName);
|
|
112
106
|
return null;
|
|
113
107
|
}
|
|
114
|
-
let relSecondaryPath = relative(mainPkgName, packageName);
|
|
108
|
+
let relSecondaryPath = __rspack_external_path.relative(mainPkgName, packageName);
|
|
115
109
|
if (!relSecondaryPath) {
|
|
116
110
|
relSecondaryPath = '.';
|
|
117
111
|
} else {
|
|
118
112
|
relSecondaryPath = './' + relSecondaryPath.replace(/\\/g, '/');
|
|
119
113
|
}
|
|
120
|
-
let cand = mainPkgJson
|
|
114
|
+
let cand = mainPkgJson?.exports?.[relSecondaryPath];
|
|
121
115
|
if (typeof cand === 'string') {
|
|
122
116
|
return {
|
|
123
|
-
entryPoint: join(mainPkgPath, cand),
|
|
117
|
+
entryPoint: __rspack_external_path.join(mainPkgPath, cand),
|
|
124
118
|
packageName,
|
|
125
119
|
version,
|
|
126
120
|
esm
|
|
127
121
|
};
|
|
128
122
|
}
|
|
129
|
-
cand = mainPkgJson
|
|
123
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.import;
|
|
130
124
|
if (typeof cand === 'object') {
|
|
131
125
|
if (cand.module) {
|
|
132
126
|
cand = cand.module;
|
|
@@ -151,13 +145,13 @@ function _getPackageInfo(packageName, directory) {
|
|
|
151
145
|
}
|
|
152
146
|
}
|
|
153
147
|
return {
|
|
154
|
-
entryPoint: join(mainPkgPath, cand),
|
|
148
|
+
entryPoint: __rspack_external_path.join(mainPkgPath, cand),
|
|
155
149
|
packageName,
|
|
156
150
|
version,
|
|
157
151
|
esm
|
|
158
152
|
};
|
|
159
153
|
}
|
|
160
|
-
cand = mainPkgJson
|
|
154
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.module;
|
|
161
155
|
if (typeof cand === 'object') {
|
|
162
156
|
if (cand.module) {
|
|
163
157
|
cand = cand.module;
|
|
@@ -171,13 +165,13 @@ function _getPackageInfo(packageName, directory) {
|
|
|
171
165
|
}
|
|
172
166
|
if (cand) {
|
|
173
167
|
return {
|
|
174
|
-
entryPoint: join(mainPkgPath, cand),
|
|
168
|
+
entryPoint: __rspack_external_path.join(mainPkgPath, cand),
|
|
175
169
|
packageName,
|
|
176
170
|
version,
|
|
177
171
|
esm
|
|
178
172
|
};
|
|
179
173
|
}
|
|
180
|
-
cand = mainPkgJson
|
|
174
|
+
cand = mainPkgJson?.exports?.[relSecondaryPath]?.default;
|
|
181
175
|
if (cand) {
|
|
182
176
|
if (typeof cand === 'object') {
|
|
183
177
|
if (cand.module) {
|
|
@@ -191,7 +185,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
191
185
|
}
|
|
192
186
|
}
|
|
193
187
|
return {
|
|
194
|
-
entryPoint: join(mainPkgPath, cand),
|
|
188
|
+
entryPoint: __rspack_external_path.join(mainPkgPath, cand),
|
|
195
189
|
packageName,
|
|
196
190
|
version,
|
|
197
191
|
esm
|
|
@@ -200,28 +194,28 @@ function _getPackageInfo(packageName, directory) {
|
|
|
200
194
|
cand = mainPkgJson['module'];
|
|
201
195
|
if (cand && relSecondaryPath === '.') {
|
|
202
196
|
return {
|
|
203
|
-
entryPoint: join(mainPkgPath, cand),
|
|
197
|
+
entryPoint: __rspack_external_path.join(mainPkgPath, cand),
|
|
204
198
|
packageName,
|
|
205
199
|
version,
|
|
206
200
|
esm: true
|
|
207
201
|
};
|
|
208
202
|
}
|
|
209
|
-
const secondaryPgkPath = join(mainPkgPath, relSecondaryPath);
|
|
210
|
-
const secondaryPgkJsonPath = join(secondaryPgkPath, 'package.json');
|
|
203
|
+
const secondaryPgkPath = __rspack_external_path.join(mainPkgPath, relSecondaryPath);
|
|
204
|
+
const secondaryPgkJsonPath = __rspack_external_path.join(secondaryPgkPath, 'package.json');
|
|
211
205
|
let secondaryPgkJson = null;
|
|
212
|
-
if (existsSync(secondaryPgkJsonPath)) {
|
|
206
|
+
if (__rspack_external_fs.existsSync(secondaryPgkJsonPath)) {
|
|
213
207
|
secondaryPgkJson = readJson(secondaryPgkJsonPath);
|
|
214
208
|
}
|
|
215
209
|
if (secondaryPgkJson && secondaryPgkJson.module) {
|
|
216
210
|
return {
|
|
217
|
-
entryPoint: join(secondaryPgkPath, secondaryPgkJson.module),
|
|
211
|
+
entryPoint: __rspack_external_path.join(secondaryPgkPath, secondaryPgkJson.module),
|
|
218
212
|
packageName,
|
|
219
213
|
version,
|
|
220
214
|
esm: true
|
|
221
215
|
};
|
|
222
216
|
}
|
|
223
|
-
cand = join(secondaryPgkPath, 'index.mjs');
|
|
224
|
-
if (existsSync(cand)) {
|
|
217
|
+
cand = __rspack_external_path.join(secondaryPgkPath, 'index.mjs');
|
|
218
|
+
if (__rspack_external_fs.existsSync(cand)) {
|
|
225
219
|
return {
|
|
226
220
|
entryPoint: cand,
|
|
227
221
|
packageName,
|
|
@@ -231,14 +225,14 @@ function _getPackageInfo(packageName, directory) {
|
|
|
231
225
|
}
|
|
232
226
|
if (secondaryPgkJson && secondaryPgkJson.main) {
|
|
233
227
|
return {
|
|
234
|
-
entryPoint: join(secondaryPgkPath, secondaryPgkJson.main),
|
|
228
|
+
entryPoint: __rspack_external_path.join(secondaryPgkPath, secondaryPgkJson.main),
|
|
235
229
|
packageName,
|
|
236
230
|
version,
|
|
237
231
|
esm
|
|
238
232
|
};
|
|
239
233
|
}
|
|
240
|
-
cand = join(secondaryPgkPath, 'index.js');
|
|
241
|
-
if (existsSync(cand)) {
|
|
234
|
+
cand = __rspack_external_path.join(secondaryPgkPath, 'index.js');
|
|
235
|
+
if (__rspack_external_fs.existsSync(cand)) {
|
|
242
236
|
return {
|
|
243
237
|
entryPoint: cand,
|
|
244
238
|
packageName,
|
|
@@ -251,7 +245,7 @@ function _getPackageInfo(packageName, directory) {
|
|
|
251
245
|
return null;
|
|
252
246
|
}
|
|
253
247
|
function readJson(mainPkgJsonPath) {
|
|
254
|
-
return JSON.parse(readFileSync(mainPkgJsonPath, 'utf-8'));
|
|
248
|
+
return JSON.parse(__rspack_external_fs.readFileSync(mainPkgJsonPath, 'utf-8'));
|
|
255
249
|
}
|
|
256
250
|
function getPkgFolder(packageName) {
|
|
257
251
|
const parts = packageName.split('/');
|
package/dist/plugin.js
CHANGED
|
@@ -7,13 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"./adapters/lib/plugin"
|
|
10
|
+
"./adapters/lib/plugin"(module) {
|
|
11
11
|
module.exports = require("./adapters/lib/plugin.js");
|
|
12
12
|
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
14
|
|
|
15
15
|
});
|
|
16
|
-
/************************************************************************/
|
|
17
16
|
// The module cache
|
|
18
17
|
var __webpack_module_cache__ = {};
|
|
19
18
|
|
|
@@ -37,7 +36,6 @@ return module.exports;
|
|
|
37
36
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
/************************************************************************/
|
|
41
39
|
// webpack/runtime/compat_get_default_export
|
|
42
40
|
(() => {
|
|
43
41
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -52,12 +50,16 @@ __webpack_require__.n = (module) => {
|
|
|
52
50
|
})();
|
|
53
51
|
// webpack/runtime/define_property_getters
|
|
54
52
|
(() => {
|
|
55
|
-
__webpack_require__.d = (exports,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
54
|
+
var define = (defs, kind) => {
|
|
55
|
+
for(var key in defs) {
|
|
56
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
57
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
define(getters, "get");
|
|
62
|
+
define(values, "value");
|
|
61
63
|
};
|
|
62
64
|
})();
|
|
63
65
|
// webpack/runtime/has_own_property
|
|
@@ -74,22 +76,21 @@ __webpack_require__.r = (exports) => {
|
|
|
74
76
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
75
77
|
};
|
|
76
78
|
})();
|
|
77
|
-
/************************************************************************/
|
|
78
79
|
var __webpack_exports__ = {};
|
|
79
80
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
80
81
|
(() => {
|
|
81
82
|
__webpack_require__.r(__webpack_exports__);
|
|
82
|
-
/*
|
|
83
|
-
/*
|
|
83
|
+
/* import */ var _adapters_lib_plugin__rspack_import_0 = __webpack_require__("./adapters/lib/plugin");
|
|
84
|
+
/* import */ var _adapters_lib_plugin__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_adapters_lib_plugin__rspack_import_0);
|
|
84
85
|
|
|
85
|
-
/*
|
|
86
|
-
/*
|
|
87
|
-
/*
|
|
86
|
+
/* reexport */ var __rspack_reexport = {};
|
|
87
|
+
/* reexport */ for( const __rspack_import_key in _adapters_lib_plugin__rspack_import_0) if(__rspack_import_key !== "default") __rspack_reexport[__rspack_import_key] =() => _adapters_lib_plugin__rspack_import_0[__rspack_import_key]
|
|
88
|
+
/* reexport */ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
})();
|
|
91
92
|
|
|
92
|
-
for(var
|
|
93
|
-
exports[
|
|
93
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
94
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
94
95
|
}
|
|
95
96
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/plugin.mjs
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
var __webpack_modules__ = {};
|
|
3
|
+
// The module cache
|
|
4
|
+
var __webpack_module_cache__ = {};
|
|
5
|
+
// The require function
|
|
6
|
+
function __webpack_require__(moduleId) {
|
|
7
|
+
// Check if module is in cache
|
|
8
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
9
|
+
if (cachedModule !== undefined) {
|
|
10
|
+
return cachedModule.exports;
|
|
11
|
+
}
|
|
12
|
+
// Create a new module (and put it into the cache)
|
|
13
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
14
|
+
exports: {}
|
|
15
|
+
});
|
|
16
|
+
// Execute the module function
|
|
17
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
18
|
+
|
|
19
|
+
// Return the exports of the module
|
|
20
|
+
return module.exports;
|
|
21
|
+
}
|
|
22
|
+
// expose the modules object (__webpack_modules__)
|
|
23
|
+
__webpack_require__.m = __webpack_modules__;
|
|
24
|
+
|
|
25
|
+
// webpack/runtime/esm_register_module
|
|
26
|
+
(() => {
|
|
27
|
+
__webpack_require__.add = function registerModules(modules) { Object.assign(__webpack_require__.m, modules) }
|
|
28
|
+
|
|
29
|
+
})();
|
|
30
|
+
|
|
31
|
+
export { __webpack_require__ };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/esbuild",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.111",
|
|
4
4
|
"author": "Zack Jackson (@ScriptedAlchemy)",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -58,12 +58,13 @@
|
|
|
58
58
|
"esbuild": "0.28.1",
|
|
59
59
|
"json5": "2.2.3",
|
|
60
60
|
"npmlog": "7.0.1",
|
|
61
|
-
"@module-federation/sdk": "2.
|
|
62
|
-
"@module-federation/webpack-bundler-runtime": "2.
|
|
63
|
-
"@module-federation/runtime": "2.
|
|
61
|
+
"@module-federation/sdk": "2.8.0",
|
|
62
|
+
"@module-federation/webpack-bundler-runtime": "2.8.0",
|
|
63
|
+
"@module-federation/runtime": "2.8.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@rslib/core": "^0.
|
|
66
|
+
"@rslib/core": "^0.23.2",
|
|
67
|
+
"typescript": "7.0.2"
|
|
67
68
|
},
|
|
68
69
|
"scripts": {
|
|
69
70
|
"build": "rslib build",
|