@module-federation/esbuild 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.
Files changed (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +113 -0
  3. package/dist/adapters/lib/collect-exports.d.ts +3 -0
  4. package/dist/adapters/lib/collect-exports.js +153 -0
  5. package/dist/adapters/lib/collect-exports.mjs +80 -0
  6. package/dist/adapters/lib/commonjs.d.ts +101 -0
  7. package/dist/adapters/lib/commonjs.js +258 -0
  8. package/dist/adapters/lib/commonjs.mjs +182 -0
  9. package/dist/adapters/lib/containerPlugin.d.ts +6 -0
  10. package/dist/adapters/lib/containerPlugin.js +233 -0
  11. package/dist/adapters/lib/containerPlugin.mjs +179 -0
  12. package/dist/adapters/lib/containerReference.d.ts +6 -0
  13. package/dist/adapters/lib/containerReference.js +257 -0
  14. package/dist/adapters/lib/containerReference.mjs +188 -0
  15. package/dist/adapters/lib/lexer.d.ts +9 -0
  16. package/dist/adapters/lib/lexer.js +187 -0
  17. package/dist/adapters/lib/lexer.mjs +136 -0
  18. package/dist/adapters/lib/linkRemotesPlugin.d.ts +6 -0
  19. package/dist/adapters/lib/linkRemotesPlugin.js +117 -0
  20. package/dist/adapters/lib/linkRemotesPlugin.mjs +48 -0
  21. package/dist/adapters/lib/manifest.d.ts +2 -0
  22. package/dist/adapters/lib/manifest.js +227 -0
  23. package/dist/adapters/lib/manifest.mjs +159 -0
  24. package/dist/adapters/lib/plugin.d.ts +8 -0
  25. package/dist/adapters/lib/plugin.js +340 -0
  26. package/dist/adapters/lib/plugin.mjs +247 -0
  27. package/dist/adapters/lib/react-replacements.d.ts +9 -0
  28. package/dist/adapters/lib/react-replacements.js +86 -0
  29. package/dist/adapters/lib/react-replacements.mjs +34 -0
  30. package/dist/adapters/lib/transform.d.ts +8 -0
  31. package/dist/adapters/lib/transform.js +171 -0
  32. package/dist/adapters/lib/transform.mjs +116 -0
  33. package/dist/adapters/lib/utils.d.ts +3 -0
  34. package/dist/adapters/lib/utils.js +87 -0
  35. package/dist/adapters/lib/utils.mjs +31 -0
  36. package/dist/build.d.ts +5 -0
  37. package/dist/build.js +140 -0
  38. package/dist/build.mjs +12 -0
  39. package/dist/index.d.ts +2 -0
  40. package/dist/index.js +55 -0
  41. package/dist/index.mjs +3 -0
  42. package/dist/lib/config/configuration-context.d.ts +7 -0
  43. package/dist/lib/config/configuration-context.js +73 -0
  44. package/dist/lib/config/configuration-context.mjs +18 -0
  45. package/dist/lib/config/federation-config.d.ts +30 -0
  46. package/dist/lib/config/federation-config.js +29 -0
  47. package/dist/lib/config/federation-config.mjs +3 -0
  48. package/dist/lib/config/share-utils.d.ts +29 -0
  49. package/dist/lib/config/share-utils.js +340 -0
  50. package/dist/lib/config/share-utils.mjs +245 -0
  51. package/dist/lib/config/with-native-federation.d.ts +23 -0
  52. package/dist/lib/config/with-native-federation.js +120 -0
  53. package/dist/lib/config/with-native-federation.mjs +66 -0
  54. package/dist/lib/core/build-adapter.d.ts +4 -0
  55. package/dist/lib/core/build-adapter.js +72 -0
  56. package/dist/lib/core/build-adapter.mjs +16 -0
  57. package/dist/lib/core/createContainerTemplate.d.ts +1 -0
  58. package/dist/lib/core/createContainerTemplate.js +235 -0
  59. package/dist/lib/core/createContainerTemplate.mjs +183 -0
  60. package/dist/lib/core/default-skip-list.d.ts +12 -0
  61. package/dist/lib/core/default-skip-list.js +103 -0
  62. package/dist/lib/core/default-skip-list.mjs +45 -0
  63. package/dist/lib/core/federation-options.d.ts +10 -0
  64. package/dist/lib/core/federation-options.js +29 -0
  65. package/dist/lib/core/federation-options.mjs +3 -0
  66. package/dist/lib/core/get-externals.d.ts +2 -0
  67. package/dist/lib/core/get-externals.js +68 -0
  68. package/dist/lib/core/get-externals.mjs +17 -0
  69. package/dist/lib/core/load-federation-config.d.ts +6 -0
  70. package/dist/lib/core/load-federation-config.js +71 -0
  71. package/dist/lib/core/load-federation-config.mjs +16 -0
  72. package/dist/lib/core/write-federation-info.d.ts +9 -0
  73. package/dist/lib/core/write-federation-info.js +67 -0
  74. package/dist/lib/core/write-federation-info.mjs +12 -0
  75. package/dist/lib/utils/logger.d.ts +11 -0
  76. package/dist/lib/utils/logger.js +113 -0
  77. package/dist/lib/utils/logger.mjs +44 -0
  78. package/dist/lib/utils/mapped-paths.d.ts +10 -0
  79. package/dist/lib/utils/mapped-paths.js +95 -0
  80. package/dist/lib/utils/mapped-paths.mjs +40 -0
  81. package/dist/lib/utils/normalize.d.ts +1 -0
  82. package/dist/lib/utils/normalize.js +66 -0
  83. package/dist/lib/utils/normalize.mjs +15 -0
  84. package/dist/lib/utils/package-info.d.ts +18 -0
  85. package/dist/lib/utils/package-info.js +325 -0
  86. package/dist/lib/utils/package-info.mjs +259 -0
  87. package/dist/plugin.d.ts +1 -0
  88. package/dist/plugin.js +96 -0
  89. package/dist/plugin.mjs +4 -0
  90. package/dist/resolve/esm-resolver.mjs +19 -0
  91. package/dist/resolve/package.json +3 -0
  92. package/dist/rslib-runtime.mjs +31 -0
  93. package/package.json +75 -0
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ // webpack/runtime/define_property_getters
13
+ (() => {
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");
24
+ };
25
+ })();
26
+ // webpack/runtime/has_own_property
27
+ (() => {
28
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
29
+ })();
30
+ // webpack/runtime/make_namespace_object
31
+ (() => {
32
+ // define __esModule on exports
33
+ __webpack_require__.r = (exports) => {
34
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
35
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
36
+ }
37
+ Object.defineProperty(exports, '__esModule', { value: true });
38
+ };
39
+ })();
40
+ var __webpack_exports__ = {};
41
+ __webpack_require__.r(__webpack_exports__);
42
+ const createContainerCode = `
43
+ import bundler_runtime_base from '@module-federation/webpack-bundler-runtime';
44
+ // import instantiatePatch from "./federation.js";
45
+
46
+ const createContainer = (federationOptions) => {
47
+ // await instantiatePatch(federationOptions, true);
48
+ const {exposes, name, remotes = [], shared, plugins} = federationOptions;
49
+
50
+ const __webpack_modules__ = {
51
+ "./node_modules/.federation/entry.1f2288102e035e2ed66b2efaf60ad043.js": (module, __webpack_exports__, __webpack_require__) => {
52
+ __webpack_require__.r(__webpack_exports__);
53
+ const bundler_runtime = __webpack_require__.n(bundler_runtime_base);
54
+ const prevFederation = __webpack_require__.federation;
55
+ __webpack_require__.federation = {};
56
+ for (const key in bundler_runtime()) {
57
+ __webpack_require__.federation[key] = bundler_runtime()[key];
58
+ }
59
+ for (const key in prevFederation) {
60
+ __webpack_require__.federation[key] = prevFederation[key];
61
+ }
62
+ if (!__webpack_require__.federation.instance) {
63
+ const pluginsToAdd = plugins || [];
64
+ __webpack_require__.federation.initOptions.plugins = __webpack_require__.federation.initOptions.plugins ?
65
+ __webpack_require__.federation.initOptions.plugins.concat(pluginsToAdd) : pluginsToAdd;
66
+ __webpack_require__.federation.instance = __webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);
67
+ if (__webpack_require__.federation.attachShareScopeMap) {
68
+ __webpack_require__.federation.attachShareScopeMap(__webpack_require__);
69
+ }
70
+ if (__webpack_require__.federation.installInitialConsumes) {
71
+ __webpack_require__.federation.installInitialConsumes();
72
+ }
73
+ }
74
+ },
75
+
76
+ "webpack/container/entry/createContainer": (module, exports, __webpack_require__) => {
77
+ const moduleMap = {};
78
+ for (const key in exposes) {
79
+ if (Object.prototype.hasOwnProperty.call(exposes, key)) {
80
+ moduleMap[key] = () => Promise.resolve(exposes[key]()).then(m => () => m);
81
+ }
82
+ }
83
+
84
+ const get = (module, getScope) => {
85
+ __webpack_require__.R = getScope;
86
+ getScope = (
87
+ __webpack_require__.o(moduleMap, module)
88
+ ? moduleMap[module]()
89
+ : Promise.resolve().then(() => {
90
+ throw new Error("Module '" + module + "' does not exist in container.");
91
+ })
92
+ );
93
+ __webpack_require__.R = undefined;
94
+ return getScope;
95
+ };
96
+ const init = (shareScope, initScope, remoteEntryInitOptions) => {
97
+ return __webpack_require__.federation.bundlerRuntime.initContainerEntry({
98
+ webpackRequire: __webpack_require__,
99
+ shareScope: shareScope,
100
+ initScope: initScope,
101
+ remoteEntryInitOptions: remoteEntryInitOptions,
102
+ shareScopeKey: "default"
103
+ });
104
+ };
105
+ __webpack_require__("./node_modules/.federation/entry.1f2288102e035e2ed66b2efaf60ad043.js");
106
+
107
+ // This exports getters to disallow modifications
108
+ __webpack_require__.d(exports, {
109
+ get: () => get,
110
+ init: () => init,
111
+ moduleMap: () => moduleMap,
112
+ });
113
+ }
114
+ };
115
+
116
+ const __webpack_module_cache__ = {};
117
+
118
+ const __webpack_require__ = (moduleId) => {
119
+ let cachedModule = __webpack_module_cache__[moduleId];
120
+ if (cachedModule !== undefined) {
121
+ return cachedModule.exports;
122
+ }
123
+ let module = __webpack_module_cache__[moduleId] = {
124
+ id: moduleId,
125
+ loaded: false,
126
+ exports: {}
127
+ };
128
+
129
+ const execOptions = {
130
+ id: moduleId,
131
+ module: module,
132
+ factory: __webpack_modules__[moduleId],
133
+ require: __webpack_require__
134
+ };
135
+ __webpack_require__.i.forEach(handler => {
136
+ handler(execOptions);
137
+ });
138
+ module = execOptions.module;
139
+ execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
140
+
141
+ module.loaded = true;
142
+
143
+ return module.exports;
144
+ };
145
+
146
+ __webpack_require__.m = __webpack_modules__;
147
+ __webpack_require__.c = __webpack_module_cache__;
148
+ __webpack_require__.i = [];
149
+
150
+ if (!__webpack_require__.federation) {
151
+ __webpack_require__.federation = {
152
+ initOptions: {
153
+ "name": name,
154
+ "remotes": remotes.map(remote => ({
155
+ "type": remote.type,
156
+ "alias": remote.alias,
157
+ "name": remote.name,
158
+ "entry": remote.entry,
159
+ "shareScope": remote.shareScope || "default"
160
+ }))
161
+ },
162
+ chunkMatcher: () => true,
163
+ rootOutputDir: "",
164
+ initialConsumes: undefined,
165
+ bundlerRuntimeOptions: {}
166
+ };
167
+ }
168
+
169
+ __webpack_require__.n = (module) => {
170
+ const getter = module && module.__esModule ? () => module['default'] : () => module;
171
+ __webpack_require__.d(getter, {a: getter});
172
+ return getter;
173
+ };
174
+
175
+ __webpack_require__.d = (exports, definition) => {
176
+ for (const key in definition) {
177
+ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
178
+ Object.defineProperty(exports, key, {enumerable: true, get: definition[key]});
179
+ }
180
+ }
181
+ };
182
+
183
+ __webpack_require__.f = {};
184
+
185
+ __webpack_require__.g = (() => {
186
+ if (typeof globalThis === 'object') return globalThis;
187
+ try {
188
+ return this || new Function('return this')();
189
+ } catch (e) {
190
+ if (typeof window === 'object') return window;
191
+ }
192
+ })();
193
+
194
+ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
195
+
196
+ __webpack_require__.r = (exports) => {
197
+ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
198
+ Object.defineProperty(exports, Symbol.toStringTag, {value: 'Module'});
199
+ }
200
+ Object.defineProperty(exports, '__esModule', {value: true});
201
+ };
202
+
203
+ __webpack_require__.federation.initOptions.shared = shared;
204
+ __webpack_require__.S = {};
205
+ const initPromises = {};
206
+ const initTokens = {};
207
+ __webpack_require__.I = (name, initScope) => {
208
+ return __webpack_require__.federation.bundlerRuntime.I({
209
+ shareScopeName: name,
210
+ webpackRequire: __webpack_require__,
211
+ initPromises: initPromises,
212
+ initTokens: initTokens,
213
+ initScope: initScope,
214
+ });
215
+ };
216
+
217
+ const __webpack_exports__ = __webpack_require__("webpack/container/entry/createContainer");
218
+ const __webpack_exports__get = __webpack_exports__.get;
219
+ const __webpack_exports__init = __webpack_exports__.init;
220
+ const __webpack_exports__moduleMap = __webpack_exports__.moduleMap;
221
+ return __webpack_exports__;
222
+ }`;
223
+
224
+ __webpack_require__.d(__webpack_exports__, {
225
+ }, {
226
+ createContainerCode: createContainerCode
227
+ });
228
+
229
+ exports.createContainerCode = __webpack_exports__.createContainerCode;
230
+ for(var __rspack_i in __webpack_exports__) {
231
+ if(["createContainerCode"].indexOf(__rspack_i) === -1) {
232
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
233
+ }
234
+ }
235
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1,183 @@
1
+ const createContainerCode = `
2
+ import bundler_runtime_base from '@module-federation/webpack-bundler-runtime';
3
+ // import instantiatePatch from "./federation.js";
4
+
5
+ const createContainer = (federationOptions) => {
6
+ // await instantiatePatch(federationOptions, true);
7
+ const {exposes, name, remotes = [], shared, plugins} = federationOptions;
8
+
9
+ const __webpack_modules__ = {
10
+ "./node_modules/.federation/entry.1f2288102e035e2ed66b2efaf60ad043.js": (module, __webpack_exports__, __webpack_require__) => {
11
+ __webpack_require__.r(__webpack_exports__);
12
+ const bundler_runtime = __webpack_require__.n(bundler_runtime_base);
13
+ const prevFederation = __webpack_require__.federation;
14
+ __webpack_require__.federation = {};
15
+ for (const key in bundler_runtime()) {
16
+ __webpack_require__.federation[key] = bundler_runtime()[key];
17
+ }
18
+ for (const key in prevFederation) {
19
+ __webpack_require__.federation[key] = prevFederation[key];
20
+ }
21
+ if (!__webpack_require__.federation.instance) {
22
+ const pluginsToAdd = plugins || [];
23
+ __webpack_require__.federation.initOptions.plugins = __webpack_require__.federation.initOptions.plugins ?
24
+ __webpack_require__.federation.initOptions.plugins.concat(pluginsToAdd) : pluginsToAdd;
25
+ __webpack_require__.federation.instance = __webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);
26
+ if (__webpack_require__.federation.attachShareScopeMap) {
27
+ __webpack_require__.federation.attachShareScopeMap(__webpack_require__);
28
+ }
29
+ if (__webpack_require__.federation.installInitialConsumes) {
30
+ __webpack_require__.federation.installInitialConsumes();
31
+ }
32
+ }
33
+ },
34
+
35
+ "webpack/container/entry/createContainer": (module, exports, __webpack_require__) => {
36
+ const moduleMap = {};
37
+ for (const key in exposes) {
38
+ if (Object.prototype.hasOwnProperty.call(exposes, key)) {
39
+ moduleMap[key] = () => Promise.resolve(exposes[key]()).then(m => () => m);
40
+ }
41
+ }
42
+
43
+ const get = (module, getScope) => {
44
+ __webpack_require__.R = getScope;
45
+ getScope = (
46
+ __webpack_require__.o(moduleMap, module)
47
+ ? moduleMap[module]()
48
+ : Promise.resolve().then(() => {
49
+ throw new Error("Module '" + module + "' does not exist in container.");
50
+ })
51
+ );
52
+ __webpack_require__.R = undefined;
53
+ return getScope;
54
+ };
55
+ const init = (shareScope, initScope, remoteEntryInitOptions) => {
56
+ return __webpack_require__.federation.bundlerRuntime.initContainerEntry({
57
+ webpackRequire: __webpack_require__,
58
+ shareScope: shareScope,
59
+ initScope: initScope,
60
+ remoteEntryInitOptions: remoteEntryInitOptions,
61
+ shareScopeKey: "default"
62
+ });
63
+ };
64
+ __webpack_require__("./node_modules/.federation/entry.1f2288102e035e2ed66b2efaf60ad043.js");
65
+
66
+ // This exports getters to disallow modifications
67
+ __webpack_require__.d(exports, {
68
+ get: () => get,
69
+ init: () => init,
70
+ moduleMap: () => moduleMap,
71
+ });
72
+ }
73
+ };
74
+
75
+ const __webpack_module_cache__ = {};
76
+
77
+ const __webpack_require__ = (moduleId) => {
78
+ let cachedModule = __webpack_module_cache__[moduleId];
79
+ if (cachedModule !== undefined) {
80
+ return cachedModule.exports;
81
+ }
82
+ let module = __webpack_module_cache__[moduleId] = {
83
+ id: moduleId,
84
+ loaded: false,
85
+ exports: {}
86
+ };
87
+
88
+ const execOptions = {
89
+ id: moduleId,
90
+ module: module,
91
+ factory: __webpack_modules__[moduleId],
92
+ require: __webpack_require__
93
+ };
94
+ __webpack_require__.i.forEach(handler => {
95
+ handler(execOptions);
96
+ });
97
+ module = execOptions.module;
98
+ execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
99
+
100
+ module.loaded = true;
101
+
102
+ return module.exports;
103
+ };
104
+
105
+ __webpack_require__.m = __webpack_modules__;
106
+ __webpack_require__.c = __webpack_module_cache__;
107
+ __webpack_require__.i = [];
108
+
109
+ if (!__webpack_require__.federation) {
110
+ __webpack_require__.federation = {
111
+ initOptions: {
112
+ "name": name,
113
+ "remotes": remotes.map(remote => ({
114
+ "type": remote.type,
115
+ "alias": remote.alias,
116
+ "name": remote.name,
117
+ "entry": remote.entry,
118
+ "shareScope": remote.shareScope || "default"
119
+ }))
120
+ },
121
+ chunkMatcher: () => true,
122
+ rootOutputDir: "",
123
+ initialConsumes: undefined,
124
+ bundlerRuntimeOptions: {}
125
+ };
126
+ }
127
+
128
+ __webpack_require__.n = (module) => {
129
+ const getter = module && module.__esModule ? () => module['default'] : () => module;
130
+ __webpack_require__.d(getter, {a: getter});
131
+ return getter;
132
+ };
133
+
134
+ __webpack_require__.d = (exports, definition) => {
135
+ for (const key in definition) {
136
+ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
137
+ Object.defineProperty(exports, key, {enumerable: true, get: definition[key]});
138
+ }
139
+ }
140
+ };
141
+
142
+ __webpack_require__.f = {};
143
+
144
+ __webpack_require__.g = (() => {
145
+ if (typeof globalThis === 'object') return globalThis;
146
+ try {
147
+ return this || new Function('return this')();
148
+ } catch (e) {
149
+ if (typeof window === 'object') return window;
150
+ }
151
+ })();
152
+
153
+ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
154
+
155
+ __webpack_require__.r = (exports) => {
156
+ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
157
+ Object.defineProperty(exports, Symbol.toStringTag, {value: 'Module'});
158
+ }
159
+ Object.defineProperty(exports, '__esModule', {value: true});
160
+ };
161
+
162
+ __webpack_require__.federation.initOptions.shared = shared;
163
+ __webpack_require__.S = {};
164
+ const initPromises = {};
165
+ const initTokens = {};
166
+ __webpack_require__.I = (name, initScope) => {
167
+ return __webpack_require__.federation.bundlerRuntime.I({
168
+ shareScopeName: name,
169
+ webpackRequire: __webpack_require__,
170
+ initPromises: initPromises,
171
+ initTokens: initTokens,
172
+ initScope: initScope,
173
+ });
174
+ };
175
+
176
+ const __webpack_exports__ = __webpack_require__("webpack/container/entry/createContainer");
177
+ const __webpack_exports__get = __webpack_exports__.get;
178
+ const __webpack_exports__init = __webpack_exports__.init;
179
+ const __webpack_exports__moduleMap = __webpack_exports__.moduleMap;
180
+ return __webpack_exports__;
181
+ }`;
182
+
183
+ export { createContainerCode };
@@ -0,0 +1,12 @@
1
+ export type SkipFn = (name: string) => boolean;
2
+ export type SkipListEntry = string | RegExp | SkipFn;
3
+ export type SkipList = SkipListEntry[];
4
+ export type PreparedSkipList = {
5
+ strings: Set<string>;
6
+ functions: SkipFn[];
7
+ regexps: RegExp[];
8
+ };
9
+ export declare const DEFAULT_SKIP_LIST: SkipListEntry[];
10
+ export declare const PREPARED_DEFAULT_SKIP_LIST: PreparedSkipList;
11
+ export declare function prepareSkipList(skipList: SkipListEntry[]): PreparedSkipList;
12
+ export declare function isInSkipList(entry: string, skipList: PreparedSkipList): boolean;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ // webpack/runtime/define_property_getters
13
+ (() => {
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");
24
+ };
25
+ })();
26
+ // webpack/runtime/has_own_property
27
+ (() => {
28
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
29
+ })();
30
+ // webpack/runtime/make_namespace_object
31
+ (() => {
32
+ // define __esModule on exports
33
+ __webpack_require__.r = (exports) => {
34
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
35
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
36
+ }
37
+ Object.defineProperty(exports, '__esModule', { value: true });
38
+ };
39
+ })();
40
+ var __webpack_exports__ = {};
41
+ __webpack_require__.r(__webpack_exports__);
42
+ const DEFAULT_SKIP_LIST = [
43
+ '@module-federation/native-federation-runtime',
44
+ '@module-federation/native-federation',
45
+ '@module-federation/native-federation-core',
46
+ '@module-federation/native-federation-esbuild',
47
+ '@angular-architects/native-federation',
48
+ '@angular-architects/native-federation-runtime',
49
+ 'es-module-shims',
50
+ 'zone.js',
51
+ 'tslib/',
52
+ '@angular/localize',
53
+ '@angular/localize/init',
54
+ '@angular/localize/tools',
55
+ '@angular/platform-server',
56
+ '@angular/platform-server/init',
57
+ '@angular/ssr',
58
+ 'express',
59
+ /\/schematics(\/|$)/,
60
+ /^@nx\/angular/,
61
+ (pkg)=>pkg.startsWith('@angular/') && !!pkg.match(/\/testing(\/|$)/),
62
+ (pkg)=>pkg.startsWith('@types/'),
63
+ (pkg)=>pkg.startsWith('@module-federation/')
64
+ ];
65
+ const PREPARED_DEFAULT_SKIP_LIST = prepareSkipList(DEFAULT_SKIP_LIST);
66
+ function prepareSkipList(skipList) {
67
+ return {
68
+ strings: new Set(skipList.filter((e)=>typeof e === 'string')),
69
+ functions: skipList.filter((e)=>typeof e === 'function'),
70
+ regexps: skipList.filter((e)=>e instanceof RegExp)
71
+ };
72
+ }
73
+ function isInSkipList(entry, skipList) {
74
+ if (skipList.strings.has(entry)) {
75
+ return true;
76
+ }
77
+ if (skipList.functions.some((f)=>f(entry))) {
78
+ return true;
79
+ }
80
+ if (skipList.regexps.some((r)=>r.test(entry))) {
81
+ return true;
82
+ }
83
+ return false;
84
+ }
85
+
86
+ __webpack_require__.d(__webpack_exports__, {
87
+ isInSkipList: () => (isInSkipList),
88
+ prepareSkipList: () => (prepareSkipList)
89
+ }, {
90
+ DEFAULT_SKIP_LIST: DEFAULT_SKIP_LIST,
91
+ PREPARED_DEFAULT_SKIP_LIST: PREPARED_DEFAULT_SKIP_LIST
92
+ });
93
+
94
+ exports.DEFAULT_SKIP_LIST = __webpack_exports__.DEFAULT_SKIP_LIST;
95
+ exports.PREPARED_DEFAULT_SKIP_LIST = __webpack_exports__.PREPARED_DEFAULT_SKIP_LIST;
96
+ exports.isInSkipList = __webpack_exports__.isInSkipList;
97
+ exports.prepareSkipList = __webpack_exports__.prepareSkipList;
98
+ for(var __rspack_i in __webpack_exports__) {
99
+ if(["DEFAULT_SKIP_LIST","PREPARED_DEFAULT_SKIP_LIST","isInSkipList","prepareSkipList"].indexOf(__rspack_i) === -1) {
100
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
101
+ }
102
+ }
103
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1,45 @@
1
+ const DEFAULT_SKIP_LIST = [
2
+ '@module-federation/native-federation-runtime',
3
+ '@module-federation/native-federation',
4
+ '@module-federation/native-federation-core',
5
+ '@module-federation/native-federation-esbuild',
6
+ '@angular-architects/native-federation',
7
+ '@angular-architects/native-federation-runtime',
8
+ 'es-module-shims',
9
+ 'zone.js',
10
+ 'tslib/',
11
+ '@angular/localize',
12
+ '@angular/localize/init',
13
+ '@angular/localize/tools',
14
+ '@angular/platform-server',
15
+ '@angular/platform-server/init',
16
+ '@angular/ssr',
17
+ 'express',
18
+ /\/schematics(\/|$)/,
19
+ /^@nx\/angular/,
20
+ (pkg)=>pkg.startsWith('@angular/') && !!pkg.match(/\/testing(\/|$)/),
21
+ (pkg)=>pkg.startsWith('@types/'),
22
+ (pkg)=>pkg.startsWith('@module-federation/')
23
+ ];
24
+ const PREPARED_DEFAULT_SKIP_LIST = prepareSkipList(DEFAULT_SKIP_LIST);
25
+ function prepareSkipList(skipList) {
26
+ return {
27
+ strings: new Set(skipList.filter((e)=>typeof e === 'string')),
28
+ functions: skipList.filter((e)=>typeof e === 'function'),
29
+ regexps: skipList.filter((e)=>e instanceof RegExp)
30
+ };
31
+ }
32
+ function isInSkipList(entry, skipList) {
33
+ if (skipList.strings.has(entry)) {
34
+ return true;
35
+ }
36
+ if (skipList.functions.some((f)=>f(entry))) {
37
+ return true;
38
+ }
39
+ if (skipList.regexps.some((r)=>r.test(entry))) {
40
+ return true;
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export { DEFAULT_SKIP_LIST, PREPARED_DEFAULT_SKIP_LIST, isInSkipList, prepareSkipList };
@@ -0,0 +1,10 @@
1
+ export interface FederationOptions {
2
+ workspaceRoot: string;
3
+ outputPath: string;
4
+ federationConfig: string;
5
+ tsConfig?: string;
6
+ verbose?: boolean;
7
+ dev?: boolean;
8
+ watch?: boolean;
9
+ packageJson?: string;
10
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ // webpack/runtime/make_namespace_object
13
+ (() => {
14
+ // define __esModule on exports
15
+ __webpack_require__.r = (exports) => {
16
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
17
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
+ }
19
+ Object.defineProperty(exports, '__esModule', { value: true });
20
+ };
21
+ })();
22
+ var __webpack_exports__ = {};
23
+ __webpack_require__.r(__webpack_exports__);
24
+
25
+
26
+ for(var __rspack_i in __webpack_exports__) {
27
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
28
+ }
29
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1,3 @@
1
+
2
+
3
+ export {};
@@ -0,0 +1,2 @@
1
+ import { NormalizedFederationConfig } from '../config/federation-config';
2
+ export declare function getExternals(config: NormalizedFederationConfig): string[];