@module-federation/nextjs-mf 0.0.0-docs-remove-invalid-lark-link-20251205062649
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 +5 -0
- package/dist/client/UrlNode.d.ts +17 -0
- package/dist/client/UrlNode.js +150 -0
- package/dist/client/UrlNode.js.map +1 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +18 -0
- package/dist/node.js.map +1 -0
- package/dist/package.json +71 -0
- package/dist/src/federation-noop.cjs +15 -0
- package/dist/src/federation-noop.d.ts +0 -0
- package/dist/src/federation-noop.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +12 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal.d.ts +50 -0
- package/dist/src/internal.js +255 -0
- package/dist/src/internal.js.map +1 -0
- package/dist/src/loaders/fixImageLoader.d.ts +22 -0
- package/dist/src/loaders/fixImageLoader.js +116 -0
- package/dist/src/loaders/fixImageLoader.js.map +1 -0
- package/dist/src/loaders/fixUrlLoader.d.ts +13 -0
- package/dist/src/loaders/fixUrlLoader.js +24 -0
- package/dist/src/loaders/fixUrlLoader.js.map +1 -0
- package/dist/src/loaders/helpers.d.ts +17 -0
- package/dist/src/loaders/helpers.js +134 -0
- package/dist/src/loaders/helpers.js.map +1 -0
- package/dist/src/loaders/nextPageMapLoader.d.ts +24 -0
- package/dist/src/loaders/nextPageMapLoader.js +166 -0
- package/dist/src/loaders/nextPageMapLoader.js.map +1 -0
- package/dist/src/logger.d.ts +2 -0
- package/dist/src/logger.js +9 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +5 -0
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
- package/dist/src/plugins/CopyFederationPlugin.d.ts +20 -0
- package/dist/src/plugins/CopyFederationPlugin.js +74 -0
- package/dist/src/plugins/CopyFederationPlugin.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.d.ts +23 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js +58 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.d.ts +36 -0
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js +135 -0
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/index.d.ts +27 -0
- package/dist/src/plugins/NextFederationPlugin/index.js +186 -0
- package/dist/src/plugins/NextFederationPlugin/index.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.d.ts +20 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.js +100 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/regex-equal.d.ts +14 -0
- package/dist/src/plugins/NextFederationPlugin/regex-equal.js +25 -0
- package/dist/src/plugins/NextFederationPlugin/regex-equal.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.d.ts +8 -0
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js +34 -0
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/set-options.d.ts +16 -0
- package/dist/src/plugins/NextFederationPlugin/set-options.js +22 -0
- package/dist/src/plugins/NextFederationPlugin/set-options.js.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/validate-options.d.ts +25 -0
- package/dist/src/plugins/NextFederationPlugin/validate-options.js +45 -0
- package/dist/src/plugins/NextFederationPlugin/validate-options.js.map +1 -0
- package/dist/src/plugins/container/InvertedContainerPlugin.d.ts +5 -0
- package/dist/src/plugins/container/InvertedContainerPlugin.js +28 -0
- package/dist/src/plugins/container/InvertedContainerPlugin.js.map +1 -0
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.d.ts +11 -0
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.js +69 -0
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.js.map +1 -0
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.d.ts +39 -0
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js +78 -0
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js.map +1 -0
- package/dist/src/plugins/container/runtimePlugin.cjs +216 -0
- package/dist/src/plugins/container/runtimePlugin.d.ts +2 -0
- package/dist/src/plugins/container/runtimePlugin.js.map +1 -0
- package/dist/src/plugins/container/types.d.ts +2 -0
- package/dist/src/plugins/container/types.js +3 -0
- package/dist/src/plugins/container/types.js.map +1 -0
- package/dist/src/types.d.ts +28 -0
- package/dist/src/types.js +3 -0
- package/dist/src/types.js.map +1 -0
- package/dist/utils/flushedChunks.d.ts +22 -0
- package/dist/utils/flushedChunks.js +77 -0
- package/dist/utils/flushedChunks.js.map +1 -0
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/index.js +66 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
function default_1() {
|
|
5
|
+
return {
|
|
6
|
+
name: 'next-internal-plugin',
|
|
7
|
+
createScript: function (args) {
|
|
8
|
+
const url = args.url;
|
|
9
|
+
const attrs = args.attrs;
|
|
10
|
+
if (typeof window !== 'undefined') {
|
|
11
|
+
const script = document.createElement('script');
|
|
12
|
+
script.src = url;
|
|
13
|
+
script.async = true;
|
|
14
|
+
delete attrs?.['crossorigin'];
|
|
15
|
+
return { script: script, timeout: 8000 };
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
},
|
|
19
|
+
errorLoadRemote: function (args) {
|
|
20
|
+
const id = args.id;
|
|
21
|
+
const error = args.error;
|
|
22
|
+
const from = args.from;
|
|
23
|
+
//@ts-ignore
|
|
24
|
+
globalThis.moduleGraphDirty = true;
|
|
25
|
+
console.error(id, 'offline');
|
|
26
|
+
const pg = function () {
|
|
27
|
+
console.error(id, 'offline', error);
|
|
28
|
+
return null;
|
|
29
|
+
};
|
|
30
|
+
pg.getInitialProps = function (ctx) {
|
|
31
|
+
return {};
|
|
32
|
+
};
|
|
33
|
+
let mod;
|
|
34
|
+
if (from === 'build') {
|
|
35
|
+
mod = function () {
|
|
36
|
+
return {
|
|
37
|
+
__esModule: true,
|
|
38
|
+
default: pg,
|
|
39
|
+
getServerSideProps: function () {
|
|
40
|
+
return { props: {} };
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
mod = {
|
|
47
|
+
default: pg,
|
|
48
|
+
getServerSideProps: function () {
|
|
49
|
+
return { props: {} };
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return mod;
|
|
54
|
+
},
|
|
55
|
+
beforeInit: function (args) {
|
|
56
|
+
if (!globalThis.usedChunks)
|
|
57
|
+
globalThis.usedChunks = new Set();
|
|
58
|
+
if (typeof __webpack_runtime_id__ === 'string' &&
|
|
59
|
+
!__webpack_runtime_id__.startsWith('webpack')) {
|
|
60
|
+
return args;
|
|
61
|
+
}
|
|
62
|
+
const moduleCache = args.origin.moduleCache;
|
|
63
|
+
const name = args.origin.name;
|
|
64
|
+
let gs;
|
|
65
|
+
try {
|
|
66
|
+
gs = new Function('return globalThis')();
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
gs = globalThis; // fallback for browsers without 'unsafe-eval' CSP policy enabled
|
|
70
|
+
}
|
|
71
|
+
//@ts-ignore
|
|
72
|
+
const attachedRemote = gs[name];
|
|
73
|
+
if (attachedRemote) {
|
|
74
|
+
moduleCache.set(name, attachedRemote);
|
|
75
|
+
}
|
|
76
|
+
return args;
|
|
77
|
+
},
|
|
78
|
+
init: function (args) {
|
|
79
|
+
return args;
|
|
80
|
+
},
|
|
81
|
+
beforeRequest: function (args) {
|
|
82
|
+
const options = args.options;
|
|
83
|
+
const id = args.id;
|
|
84
|
+
const remoteName = id.split('/').shift();
|
|
85
|
+
const remote = options.remotes.find(function (remote) {
|
|
86
|
+
return remote.name === remoteName;
|
|
87
|
+
});
|
|
88
|
+
if (!remote)
|
|
89
|
+
return args;
|
|
90
|
+
if (remote && remote.entry && remote.entry.includes('?t=')) {
|
|
91
|
+
return args;
|
|
92
|
+
}
|
|
93
|
+
remote.entry = remote.entry + '?t=' + Date.now();
|
|
94
|
+
return args;
|
|
95
|
+
},
|
|
96
|
+
afterResolve: function (args) {
|
|
97
|
+
return args;
|
|
98
|
+
},
|
|
99
|
+
onLoad: function (args) {
|
|
100
|
+
const exposeModuleFactory = args.exposeModuleFactory;
|
|
101
|
+
const exposeModule = args.exposeModule;
|
|
102
|
+
const id = args.id;
|
|
103
|
+
const moduleOrFactory = exposeModuleFactory || exposeModule;
|
|
104
|
+
if (!moduleOrFactory)
|
|
105
|
+
return args;
|
|
106
|
+
if (typeof window === 'undefined') {
|
|
107
|
+
let exposedModuleExports;
|
|
108
|
+
try {
|
|
109
|
+
exposedModuleExports = moduleOrFactory();
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
exposedModuleExports = moduleOrFactory;
|
|
113
|
+
}
|
|
114
|
+
const handler = {
|
|
115
|
+
get: function (target, prop, receiver) {
|
|
116
|
+
if (target === exposedModuleExports &&
|
|
117
|
+
typeof exposedModuleExports[prop] === 'function') {
|
|
118
|
+
return function () {
|
|
119
|
+
globalThis.usedChunks.add(id);
|
|
120
|
+
//eslint-disable-next-line
|
|
121
|
+
return exposedModuleExports[prop].apply(this, arguments);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const originalMethod = target[prop];
|
|
125
|
+
if (typeof originalMethod === 'function') {
|
|
126
|
+
const proxiedFunction = function () {
|
|
127
|
+
globalThis.usedChunks.add(id);
|
|
128
|
+
//eslint-disable-next-line
|
|
129
|
+
return originalMethod.apply(this, arguments);
|
|
130
|
+
};
|
|
131
|
+
Object.keys(originalMethod).forEach(function (prop) {
|
|
132
|
+
Object.defineProperty(proxiedFunction, prop, {
|
|
133
|
+
value: originalMethod[prop],
|
|
134
|
+
writable: true,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
configurable: true,
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
return proxiedFunction;
|
|
140
|
+
}
|
|
141
|
+
return Reflect.get(target, prop, receiver);
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
if (typeof exposedModuleExports === 'function') {
|
|
145
|
+
exposedModuleExports = new Proxy(exposedModuleExports, handler);
|
|
146
|
+
const staticProps = Object.getOwnPropertyNames(exposedModuleExports);
|
|
147
|
+
staticProps.forEach(function (prop) {
|
|
148
|
+
if (typeof exposedModuleExports[prop] === 'function') {
|
|
149
|
+
exposedModuleExports[prop] = new Proxy(exposedModuleExports[prop], handler);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
return function () {
|
|
153
|
+
return exposedModuleExports;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
exposedModuleExports = new Proxy(exposedModuleExports, handler);
|
|
158
|
+
}
|
|
159
|
+
return exposedModuleExports;
|
|
160
|
+
}
|
|
161
|
+
return args;
|
|
162
|
+
},
|
|
163
|
+
loadRemoteSnapshot(args) {
|
|
164
|
+
const { from, remoteSnapshot, manifestUrl, manifestJson, options } = args;
|
|
165
|
+
// ensure snapshot is loaded from manifest
|
|
166
|
+
if (from !== 'manifest' ||
|
|
167
|
+
!manifestUrl ||
|
|
168
|
+
!manifestJson ||
|
|
169
|
+
!('publicPath' in remoteSnapshot)) {
|
|
170
|
+
return args;
|
|
171
|
+
}
|
|
172
|
+
// re-assign publicPath based on remoteEntry location if in browser nextjs remote
|
|
173
|
+
const { publicPath } = remoteSnapshot;
|
|
174
|
+
if (options.inBrowser && publicPath.includes('/_next/')) {
|
|
175
|
+
remoteSnapshot.publicPath = publicPath.substring(0, publicPath.lastIndexOf('/_next/') + 7);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
const serverPublicPath = manifestUrl.substring(0, manifestUrl.indexOf('mf-manifest.json'));
|
|
179
|
+
remoteSnapshot.publicPath = serverPublicPath;
|
|
180
|
+
}
|
|
181
|
+
if ('publicPath' in manifestJson.metaData) {
|
|
182
|
+
manifestJson.metaData.publicPath = remoteSnapshot.publicPath;
|
|
183
|
+
}
|
|
184
|
+
return args;
|
|
185
|
+
},
|
|
186
|
+
resolveShare: function (args) {
|
|
187
|
+
if (args.pkgName !== 'react' &&
|
|
188
|
+
args.pkgName !== 'react-dom' &&
|
|
189
|
+
!args.pkgName.startsWith('next/')) {
|
|
190
|
+
return args;
|
|
191
|
+
}
|
|
192
|
+
const shareScopeMap = args.shareScopeMap;
|
|
193
|
+
const scope = args.scope;
|
|
194
|
+
const pkgName = args.pkgName;
|
|
195
|
+
const version = args.version;
|
|
196
|
+
const GlobalFederation = args.GlobalFederation;
|
|
197
|
+
const host = GlobalFederation['__INSTANCES__'][0];
|
|
198
|
+
if (!host) {
|
|
199
|
+
return args;
|
|
200
|
+
}
|
|
201
|
+
if (!host.options.shared[pkgName]) {
|
|
202
|
+
return args;
|
|
203
|
+
}
|
|
204
|
+
args.resolver = function () {
|
|
205
|
+
shareScopeMap[scope][pkgName][version] =
|
|
206
|
+
host.options.shared[pkgName][0];
|
|
207
|
+
return shareScopeMap[scope][pkgName][version];
|
|
208
|
+
};
|
|
209
|
+
return args;
|
|
210
|
+
},
|
|
211
|
+
beforeLoadShare: async function (args) {
|
|
212
|
+
return args;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=runtimePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimePlugin.js","sourceRoot":"","sources":["../../../../src/plugins/container/runtimePlugin.ts"],"names":[],"mappings":";;AAEA,4BAwPC;AAxPD;IACE,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,YAAY,EAAE,UAAU,IAGvB;YACC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;YACrB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;gBAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAChD,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;gBACjB,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;gBACpB,OAAO,KAAK,EAAE,CAAC,aAAa,CAAC,CAAC;gBAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC3C,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,eAAe,EAAE,UAAU,IAK1B;YACC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;YACnB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YACvB,YAAY;YACZ,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;YAC7B,MAAM,EAAE,GAAG;gBACT,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;gBACpC,OAAO,IAAI,CAAC;YACd,CAAC,CAAC;YAED,EAAU,CAAC,eAAe,GAAG,UAAU,GAAQ;gBAC9C,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC;YACF,IAAI,G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C,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClC,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;QACD,eAAe,EAAE,KAAK,WAAW,IAAS;YACxC,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/container/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare interface WatchOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Delay the rebuilt after the first change. Value is a time in ms.
|
|
4
|
+
*/
|
|
5
|
+
aggregateTimeout?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').
|
|
8
|
+
*/
|
|
9
|
+
followSymlinks?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Ignore some files from watching (glob pattern or regexp).
|
|
12
|
+
*/
|
|
13
|
+
ignored?: string | RegExp | string[];
|
|
14
|
+
/**
|
|
15
|
+
* Enable polling mode for watching.
|
|
16
|
+
*/
|
|
17
|
+
poll?: number | boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Stop watching when stdin stream has ended.
|
|
20
|
+
*/
|
|
21
|
+
stdin?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare interface CallbackFunction<T> {
|
|
24
|
+
(err?: null | Error, result?: T): any;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
var usedChunks: Set<string>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* FlushedChunks component.
|
|
4
|
+
* This component creates script and link elements for each chunk.
|
|
5
|
+
*
|
|
6
|
+
* @param {FlushedChunksProps} props - The properties of the component.
|
|
7
|
+
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
8
|
+
* @returns {React.ReactElement} The created script and link elements.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FlushedChunks: ({ chunks }: FlushedChunksProps) => React.FunctionComponentElement<{
|
|
11
|
+
children?: React.ReactNode | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* FlushedChunksProps interface.
|
|
15
|
+
* This interface represents the properties of the FlushedChunks component.
|
|
16
|
+
*
|
|
17
|
+
* @interface
|
|
18
|
+
* @property {string[]} chunks - The chunks to be flushed.
|
|
19
|
+
*/
|
|
20
|
+
export interface FlushedChunksProps {
|
|
21
|
+
chunks: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.FlushedChunks = void 0;
|
|
37
|
+
const React = __importStar(require("react"));
|
|
38
|
+
/**
|
|
39
|
+
* FlushedChunks component.
|
|
40
|
+
* This component creates script and link elements for each chunk.
|
|
41
|
+
*
|
|
42
|
+
* @param {FlushedChunksProps} props - The properties of the component.
|
|
43
|
+
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
44
|
+
* @returns {React.ReactElement} The created script and link elements.
|
|
45
|
+
*/
|
|
46
|
+
const FlushedChunks = ({ chunks = [] }) => {
|
|
47
|
+
const scripts = chunks
|
|
48
|
+
.filter((c) => {
|
|
49
|
+
// TODO: host shouldnt flush its own remote out
|
|
50
|
+
// if(c.includes('?')) {
|
|
51
|
+
// return c.split('?')[0].endsWith('.js')
|
|
52
|
+
// }
|
|
53
|
+
return c.endsWith('.js');
|
|
54
|
+
})
|
|
55
|
+
.map((chunk) => {
|
|
56
|
+
if (!chunk.includes('?') && chunk.includes('remoteEntry')) {
|
|
57
|
+
chunk = chunk + '?t=' + Date.now();
|
|
58
|
+
}
|
|
59
|
+
return React.createElement('script', {
|
|
60
|
+
key: chunk,
|
|
61
|
+
src: chunk,
|
|
62
|
+
async: true,
|
|
63
|
+
}, null);
|
|
64
|
+
});
|
|
65
|
+
const css = chunks
|
|
66
|
+
.filter((c) => c.endsWith('.css'))
|
|
67
|
+
.map((chunk) => {
|
|
68
|
+
return React.createElement('link', {
|
|
69
|
+
key: chunk,
|
|
70
|
+
href: chunk,
|
|
71
|
+
rel: 'stylesheet',
|
|
72
|
+
}, null);
|
|
73
|
+
});
|
|
74
|
+
return React.createElement(React.Fragment, null, css, scripts);
|
|
75
|
+
};
|
|
76
|
+
exports.FlushedChunks = FlushedChunks;
|
|
77
|
+
//# sourceMappingURL=flushedChunks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flushedChunks.js","sourceRoot":"","sources":["../../utils/flushedChunks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B;;;;;;;GAOG;AACI,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAsB,EAAE,EAAE;IACnE,MAAM,OAAO,GAAG,MAAM;SACnB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QACZ,+CAA+C;QAC/C,wBAAwB;QACxB,2CAA2C;QAC3C,IAAI;QACJ,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YAC1D,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACrC,CAAC;QACD,OAAO,KAAK,CAAC,aAAa,CACxB,QAAQ,EACR;YACE,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,IAAI;SACZ,EACD,IAAI,CACL,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,MAAM,GAAG,GAAG,MAAM;SACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACjC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,OAAO,KAAK,CAAC,aAAa,CACxB,MAAM,EACN;YACE,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,KAAK;YACX,GAAG,EAAE,YAAY;SAClB,EACD,IAAI,CACL,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAvCW,QAAA,aAAa,iBAuCxB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flushes chunks from the module federation node utilities.
|
|
3
|
+
* @module @module-federation/node/utils
|
|
4
|
+
*/
|
|
5
|
+
export { flushChunks } from '@module-federation/node/utils';
|
|
6
|
+
/**
|
|
7
|
+
* Exports the FlushedChunks component from the current directory.
|
|
8
|
+
*/
|
|
9
|
+
export { FlushedChunks } from './flushedChunks';
|
|
10
|
+
/**
|
|
11
|
+
* Exports the FlushedChunksProps type from the current directory.
|
|
12
|
+
*/
|
|
13
|
+
export type { FlushedChunksProps } from './flushedChunks';
|
|
14
|
+
/**
|
|
15
|
+
* Revalidates the current state.
|
|
16
|
+
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
17
|
+
* If the function is called on the server side, it imports the revalidate function from the module federation node utilities and returns the result of calling that function.
|
|
18
|
+
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
19
|
+
*/
|
|
20
|
+
export declare const revalidate: (fetchModule?: any, force?: boolean) => Promise<boolean>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.revalidate = exports.FlushedChunks = exports.flushChunks = void 0;
|
|
37
|
+
/**
|
|
38
|
+
* Flushes chunks from the module federation node utilities.
|
|
39
|
+
* @module @module-federation/node/utils
|
|
40
|
+
*/
|
|
41
|
+
var utils_1 = require("@module-federation/node/utils");
|
|
42
|
+
Object.defineProperty(exports, "flushChunks", { enumerable: true, get: function () { return utils_1.flushChunks; } });
|
|
43
|
+
/**
|
|
44
|
+
* Exports the FlushedChunks component from the current directory.
|
|
45
|
+
*/
|
|
46
|
+
var flushedChunks_1 = require("./flushedChunks");
|
|
47
|
+
Object.defineProperty(exports, "FlushedChunks", { enumerable: true, get: function () { return flushedChunks_1.FlushedChunks; } });
|
|
48
|
+
/**
|
|
49
|
+
* Revalidates the current state.
|
|
50
|
+
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
51
|
+
* If the function is called on the server side, it imports the revalidate function from the module federation node utilities and returns the result of calling that function.
|
|
52
|
+
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
53
|
+
*/
|
|
54
|
+
const revalidate = function (fetchModule = undefined, force = false) {
|
|
55
|
+
if (typeof window !== 'undefined') {
|
|
56
|
+
console.error('revalidate should only be called server-side');
|
|
57
|
+
return Promise.resolve(false);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return Promise.resolve().then(() => __importStar(require('@module-federation/node/utils'))).then(function (utils) {
|
|
61
|
+
return utils.revalidate(fetchModule, force);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.revalidate = revalidate;
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,uDAA4D;AAAnD,oGAAA,WAAW,OAAA;AAEpB;;GAEG;AACH,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAOtB;;;;;GAKG;AACI,MAAM,UAAU,GAAG,UACxB,cAAmB,SAAS,EAC5B,KAAK,GAAG,KAAK;IAEb,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;QAC9D,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;SAAM,CAAC;QACN,OAAO,kDAAO,+BAA+B,IAAE,IAAI,CAAC,UAAU,KAAK;YACjE,OAAO,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,UAAU,cAYrB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@module-federation/nextjs-mf",
|
|
3
|
+
"version": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "dist/src/index.js",
|
|
6
|
+
"types": "dist/src/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"description": "Module Federation helper for NextJS",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/module-federation/core.git",
|
|
12
|
+
"directory": "packages/nextjs-mf"
|
|
13
|
+
},
|
|
14
|
+
"author": "Zack Jackson <zackary.l.jackson@gmail.com>",
|
|
15
|
+
"contributors": [
|
|
16
|
+
"Pavel Chertorogov, nodkz <pavel.chertorogov@gmail.com> (www.ps.kz)"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/src/index.js",
|
|
24
|
+
"./utils": "./dist/utils/index.js",
|
|
25
|
+
"./*": "./*"
|
|
26
|
+
},
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
"*": {
|
|
29
|
+
".": [
|
|
30
|
+
"./dist/src/index.d.ts"
|
|
31
|
+
],
|
|
32
|
+
"utils": [
|
|
33
|
+
"./dist/utils/index.d.ts"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"fast-glob": "^3.2.11",
|
|
42
|
+
"@module-federation/sdk": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
|
|
43
|
+
"@module-federation/node": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
|
|
44
|
+
"@module-federation/enhanced": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
|
|
45
|
+
"@module-federation/webpack-bundler-runtime": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
|
|
46
|
+
"@module-federation/runtime": "0.0.0-docs-remove-invalid-lark-link-20251205062649"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/btoa": "^1.2.5",
|
|
50
|
+
"@types/react": "^18.3.1",
|
|
51
|
+
"@types/react-dom": "^18.3.1"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"webpack": "^5.40.0",
|
|
55
|
+
"next": "^12 || ^13 || ^14 || ^15",
|
|
56
|
+
"react": "^17 || ^18 || ^19",
|
|
57
|
+
"react-dom": "^17 || ^18 || ^19",
|
|
58
|
+
"styled-jsx": "*"
|
|
59
|
+
},
|
|
60
|
+
"peerDependenciesMeta": {
|
|
61
|
+
"webpack": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"styled-jsx": {
|
|
65
|
+
"optional": true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"postinstall": "echo \"Deprecation Notice: We intend to deprecate 'nextjs-mf'. Please see https://github.com/module-federation/core/issues/3153 for more details.\""
|
|
70
|
+
}
|
|
71
|
+
}
|