@module-federation/esbuild 0.0.109 → 0.0.110

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.
Files changed (60) hide show
  1. package/dist/adapters/lib/collect-exports.js +15 -13
  2. package/dist/adapters/lib/collect-exports.mjs +0 -7
  3. package/dist/adapters/lib/commonjs.js +22 -25
  4. package/dist/adapters/lib/commonjs.mjs +13 -41
  5. package/dist/adapters/lib/containerPlugin.js +14 -13
  6. package/dist/adapters/lib/containerPlugin.mjs +1 -4
  7. package/dist/adapters/lib/containerReference.js +14 -13
  8. package/dist/adapters/lib/containerReference.mjs +1 -4
  9. package/dist/adapters/lib/lexer.js +17 -14
  10. package/dist/adapters/lib/lexer.mjs +0 -2
  11. package/dist/adapters/lib/linkRemotesPlugin.js +13 -11
  12. package/dist/adapters/lib/linkRemotesPlugin.mjs +0 -2
  13. package/dist/adapters/lib/manifest.js +17 -16
  14. package/dist/adapters/lib/manifest.mjs +4 -9
  15. package/dist/adapters/lib/plugin.js +16 -16
  16. package/dist/adapters/lib/plugin.mjs +8 -44
  17. package/dist/adapters/lib/react-replacements.js +19 -14
  18. package/dist/adapters/lib/react-replacements.mjs +1 -2
  19. package/dist/adapters/lib/transform.js +13 -11
  20. package/dist/adapters/lib/transform.mjs +4 -8
  21. package/dist/adapters/lib/utils.js +20 -16
  22. package/dist/adapters/lib/utils.mjs +1 -3
  23. package/dist/build.js +47 -46
  24. package/dist/build.mjs +1 -2
  25. package/dist/index.js +17 -13
  26. package/dist/index.mjs +2 -4
  27. package/dist/lib/config/configuration-context.js +19 -16
  28. package/dist/lib/config/configuration-context.mjs +0 -2
  29. package/dist/lib/config/federation-config.js +2 -4
  30. package/dist/lib/config/federation-config.mjs +1 -2
  31. package/dist/lib/config/share-utils.js +24 -23
  32. package/dist/lib/config/share-utils.mjs +1 -10
  33. package/dist/lib/config/with-native-federation.js +13 -11
  34. package/dist/lib/config/with-native-federation.mjs +0 -5
  35. package/dist/lib/core/build-adapter.js +13 -11
  36. package/dist/lib/core/build-adapter.mjs +0 -2
  37. package/dist/lib/core/createContainerTemplate.js +18 -14
  38. package/dist/lib/core/createContainerTemplate.mjs +0 -2
  39. package/dist/lib/core/default-skip-list.js +21 -17
  40. package/dist/lib/core/default-skip-list.mjs +0 -2
  41. package/dist/lib/core/federation-options.js +2 -4
  42. package/dist/lib/core/federation-options.mjs +1 -2
  43. package/dist/lib/core/get-externals.js +17 -14
  44. package/dist/lib/core/get-externals.mjs +0 -2
  45. package/dist/lib/core/load-federation-config.js +13 -11
  46. package/dist/lib/core/load-federation-config.mjs +4 -8
  47. package/dist/lib/core/write-federation-info.js +13 -11
  48. package/dist/lib/core/write-federation-info.mjs +4 -8
  49. package/dist/lib/utils/logger.js +15 -13
  50. package/dist/lib/utils/logger.mjs +0 -2
  51. package/dist/lib/utils/mapped-paths.js +14 -13
  52. package/dist/lib/utils/mapped-paths.mjs +8 -14
  53. package/dist/lib/utils/normalize.js +17 -14
  54. package/dist/lib/utils/normalize.mjs +0 -2
  55. package/dist/lib/utils/package-info.js +21 -20
  56. package/dist/lib/utils/package-info.mjs +35 -41
  57. package/dist/plugin.js +19 -18
  58. package/dist/plugin.mjs +1 -2
  59. package/dist/rslib-runtime.mjs +31 -0
  60. 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, definition) => {
16
- for(var key in definition) {
17
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
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
- _getPackageInfo: () => (/* binding */ _getPackageInfo)
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports = mainPkgJson.exports) === null || _mainPkgJson_exports === void 0 ? void 0 : _mainPkgJson_exports[relSecondaryPath];
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports1 = mainPkgJson.exports) === null || _mainPkgJson_exports1 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath = _mainPkgJson_exports1[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath.import;
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports2 = mainPkgJson.exports) === null || _mainPkgJson_exports2 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath1 = _mainPkgJson_exports2[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath1 === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath1.module;
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports3 = mainPkgJson.exports) === null || _mainPkgJson_exports3 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath2 = _mainPkgJson_exports3[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath2 === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath2.default;
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 __webpack_i__ in __webpack_exports__) {
320
- if(["_getPackageInfo","expandFolders","findDepPackageJson","findPackageJsonFiles","getPackageInfo","getPackageJsonFiles","getVersionMaps"].indexOf(__webpack_i__) === -1) {
321
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
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
- ;// CONCATENATED MODULE: external "fs"
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports = mainPkgJson.exports) === null || _mainPkgJson_exports === void 0 ? void 0 : _mainPkgJson_exports[relSecondaryPath];
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports1 = mainPkgJson.exports) === null || _mainPkgJson_exports1 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath = _mainPkgJson_exports1[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath.import;
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports2 = mainPkgJson.exports) === null || _mainPkgJson_exports2 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath1 = _mainPkgJson_exports2[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath1 === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath1.module;
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 === null || mainPkgJson === void 0 ? void 0 : (_mainPkgJson_exports3 = mainPkgJson.exports) === null || _mainPkgJson_exports3 === void 0 ? void 0 : (_mainPkgJson_exports_relSecondaryPath2 = _mainPkgJson_exports3[relSecondaryPath]) === null || _mainPkgJson_exports_relSecondaryPath2 === void 0 ? void 0 : _mainPkgJson_exports_relSecondaryPath2.default;
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": (function (module) {
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, definition) => {
56
- for(var key in definition) {
57
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
58
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
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
- /* ESM import */var _adapters_lib_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./adapters/lib/plugin");
83
- /* ESM import */var _adapters_lib_plugin__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_adapters_lib_plugin__WEBPACK_IMPORTED_MODULE_0__);
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
- /* ESM reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
86
- /* ESM reexport (unknown) */ for( var __WEBPACK_IMPORT_KEY__ in _adapters_lib_plugin__WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] =function(key) { return _adapters_lib_plugin__WEBPACK_IMPORTED_MODULE_0__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
87
- /* ESM reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
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 __webpack_i__ in __webpack_exports__) {
93
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
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
@@ -1,5 +1,4 @@
1
1
  export * from "./adapters/lib/plugin.mjs";
2
2
 
3
- ;// CONCATENATED MODULE: ./src/plugin.ts
4
-
5
3
 
4
+ export {};
@@ -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.109",
3
+ "version": "0.0.110",
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.6.0",
62
- "@module-federation/webpack-bundler-runtime": "2.6.0",
63
- "@module-federation/runtime": "2.6.0"
61
+ "@module-federation/sdk": "2.7.0",
62
+ "@module-federation/runtime": "2.7.0",
63
+ "@module-federation/webpack-bundler-runtime": "2.7.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@rslib/core": "^0.12.4"
66
+ "@rslib/core": "^0.23.2",
67
+ "typescript": "6.0.3"
67
68
  },
68
69
  "scripts": {
69
70
  "build": "rslib build",