@module-federation/nextjs-mf 8.8.56 → 8.8.57
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/LICENSE +21 -0
- package/dist/_virtual/_rolldown/runtime.js +29 -0
- package/dist/_virtual/_rolldown/runtime.mjs +8 -0
- package/dist/client/UrlNode.js +89 -147
- package/dist/client/UrlNode.js.map +1 -1
- package/dist/client/UrlNode.mjs +91 -0
- package/dist/client/UrlNode.mjs.map +1 -0
- package/dist/src/federation-noop.d.mts +1 -0
- package/dist/src/federation-noop.d.ts +1 -0
- package/dist/src/federation-noop.js +17 -0
- package/dist/src/federation-noop.js.map +1 -1
- package/dist/src/federation-noop.mjs +23 -0
- package/dist/src/federation-noop.mjs.map +1 -0
- package/dist/src/index.d.mts +2 -0
- package/dist/src/index.d.ts +2 -3
- package/dist/src/index.js +13 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +8 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/src/internal.js +140 -243
- package/dist/src/internal.js.map +1 -1
- package/dist/src/internal.mjs +152 -0
- package/dist/src/internal.mjs.map +1 -0
- package/dist/src/loaders/fixImageLoader.d.mts +27 -0
- package/dist/src/loaders/fixImageLoader.d.ts +8 -3
- package/dist/src/loaders/fixImageLoader.js +91 -103
- package/dist/src/loaders/fixImageLoader.js.map +1 -1
- package/dist/src/loaders/fixImageLoader.mjs +101 -0
- package/dist/src/loaders/fixImageLoader.mjs.map +1 -0
- package/dist/src/loaders/fixUrlLoader.d.mts +16 -0
- package/dist/src/loaders/fixUrlLoader.d.ts +5 -2
- package/dist/src/loaders/fixUrlLoader.js +17 -19
- package/dist/src/loaders/fixUrlLoader.js.map +1 -1
- package/dist/src/loaders/fixUrlLoader.mjs +19 -0
- package/dist/src/loaders/fixUrlLoader.mjs.map +1 -0
- package/dist/src/loaders/helpers.js +72 -124
- package/dist/src/loaders/helpers.js.map +1 -1
- package/dist/src/loaders/helpers.mjs +79 -0
- package/dist/src/loaders/helpers.mjs.map +1 -0
- package/dist/src/loaders/nextPageMapLoader.d.mts +29 -0
- package/dist/src/loaders/nextPageMapLoader.d.ts +10 -5
- package/dist/src/loaders/nextPageMapLoader.js +126 -144
- package/dist/src/loaders/nextPageMapLoader.js.map +1 -1
- package/dist/src/loaders/nextPageMapLoader.mjs +143 -0
- package/dist/src/loaders/nextPageMapLoader.mjs.map +1 -0
- package/dist/src/logger.js +7 -7
- package/dist/src/logger.js.map +1 -1
- package/dist/src/logger.mjs +8 -0
- package/dist/src/logger.mjs.map +1 -0
- package/dist/src/plugins/CopyFederationPlugin.js +64 -71
- package/dist/src/plugins/CopyFederationPlugin.js.map +1 -1
- package/dist/src/plugins/CopyFederationPlugin.mjs +65 -0
- package/dist/src/plugins/CopyFederationPlugin.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js +36 -53
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.mjs +40 -0
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js +103 -121
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.mjs +111 -0
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/index.d.mts +31 -0
- package/dist/src/plugins/NextFederationPlugin/index.d.ts +27 -23
- package/dist/src/plugins/NextFederationPlugin/index.js +147 -181
- package/dist/src/plugins/NextFederationPlugin/index.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/index.mjs +150 -0
- package/dist/src/plugins/NextFederationPlugin/index.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.d.mts +18 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.d.ts +16 -18
- package/dist/src/plugins/NextFederationPlugin/next-fragments.js +62 -92
- package/dist/src/plugins/NextFederationPlugin/next-fragments.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/next-fragments.mjs +68 -0
- package/dist/src/plugins/NextFederationPlugin/next-fragments.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/set-options.js +17 -19
- package/dist/src/plugins/NextFederationPlugin/set-options.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/set-options.mjs +19 -0
- package/dist/src/plugins/NextFederationPlugin/set-options.mjs.map +1 -0
- package/dist/src/plugins/NextFederationPlugin/validate-options.js +30 -38
- package/dist/src/plugins/NextFederationPlugin/validate-options.js.map +1 -1
- package/dist/src/plugins/NextFederationPlugin/validate-options.mjs +35 -0
- package/dist/src/plugins/NextFederationPlugin/validate-options.mjs.map +1 -0
- package/dist/src/plugins/container/InvertedContainerPlugin.js +22 -25
- package/dist/src/plugins/container/InvertedContainerPlugin.js.map +1 -1
- package/dist/src/plugins/container/InvertedContainerPlugin.mjs +23 -0
- package/dist/src/plugins/container/InvertedContainerPlugin.mjs.map +1 -0
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.js +55 -67
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.js.map +1 -1
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.mjs +57 -0
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.mjs.map +1 -0
- package/dist/src/plugins/container/runtimePlugin.d.mts +7 -0
- package/dist/src/plugins/container/runtimePlugin.d.ts +6 -2
- package/dist/src/plugins/container/runtimePlugin.js +167 -0
- package/dist/src/plugins/container/runtimePlugin.js.map +1 -1
- package/dist/src/plugins/container/runtimePlugin.mjs +166 -0
- package/dist/src/plugins/container/runtimePlugin.mjs.map +1 -0
- package/dist/utils/flushedChunks.d.mts +29 -0
- package/dist/utils/flushedChunks.d.ts +12 -5
- package/dist/utils/flushedChunks.js +32 -72
- package/dist/utils/flushedChunks.js.map +1 -1
- package/dist/utils/flushedChunks.mjs +35 -0
- package/dist/utils/flushedChunks.mjs.map +1 -0
- package/dist/utils/index.d.mts +14 -0
- package/dist/utils/index.d.ts +8 -14
- package/dist/utils/index.js +27 -62
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +22 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +29 -9
- package/dist/client/UrlNode.d.ts +0 -17
- package/dist/node.d.ts +0 -1
- package/dist/node.js +0 -18
- package/dist/node.js.map +0 -1
- package/dist/package.json +0 -80
- package/dist/src/federation-noop.cjs +0 -15
- package/dist/src/internal.d.ts +0 -50
- package/dist/src/loaders/helpers.d.ts +0 -17
- package/dist/src/logger.d.ts +0 -2
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +0 -5
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -19
- package/dist/src/plugins/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
- package/dist/src/plugins/CopyFederationPlugin.d.ts +0 -20
- package/dist/src/plugins/NextFederationPlugin/apply-client-plugins.d.ts +0 -23
- package/dist/src/plugins/NextFederationPlugin/apply-server-plugins.d.ts +0 -36
- package/dist/src/plugins/NextFederationPlugin/regex-equal.d.ts +0 -14
- package/dist/src/plugins/NextFederationPlugin/regex-equal.js +0 -25
- package/dist/src/plugins/NextFederationPlugin/regex-equal.js.map +0 -1
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.d.ts +0 -8
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js +0 -34
- package/dist/src/plugins/NextFederationPlugin/remove-unnecessary-shared-keys.js.map +0 -1
- package/dist/src/plugins/NextFederationPlugin/set-options.d.ts +0 -16
- package/dist/src/plugins/NextFederationPlugin/validate-options.d.ts +0 -25
- package/dist/src/plugins/container/InvertedContainerPlugin.d.ts +0 -5
- package/dist/src/plugins/container/InvertedContainerRuntimeModule.d.ts +0 -11
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.d.ts +0 -39
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js +0 -78
- package/dist/src/plugins/container/RemoveEagerModulesFromRuntimePlugin.js.map +0 -1
- package/dist/src/plugins/container/runtimePlugin.cjs +0 -219
- package/dist/src/plugins/container/types.d.ts +0 -2
- package/dist/src/plugins/container/types.js +0 -3
- package/dist/src/plugins/container/types.js.map +0 -1
- package/dist/src/types.d.ts +0 -28
- package/dist/src/types.js +0 -3
- package/dist/src/types.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region utils/flushedChunks.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* FlushedChunks component.
|
|
6
|
+
* This component creates script and link elements for each chunk.
|
|
7
|
+
*
|
|
8
|
+
* @param {FlushedChunksProps} props - The properties of the component.
|
|
9
|
+
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
10
|
+
* @returns {React.ReactElement} The created script and link elements.
|
|
11
|
+
*/
|
|
12
|
+
declare const FlushedChunks: ({
|
|
13
|
+
chunks
|
|
14
|
+
}: FlushedChunksProps) => React.FunctionComponentElement<{
|
|
15
|
+
children?: React.ReactNode | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* FlushedChunksProps interface.
|
|
19
|
+
* This interface represents the properties of the FlushedChunks component.
|
|
20
|
+
*
|
|
21
|
+
* @interface
|
|
22
|
+
* @property {string[]} chunks - The chunks to be flushed.
|
|
23
|
+
*/
|
|
24
|
+
interface FlushedChunksProps {
|
|
25
|
+
chunks: string[];
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { FlushedChunks, FlushedChunksProps };
|
|
29
|
+
//# sourceMappingURL=flushedChunks.d.mts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region utils/flushedChunks.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* FlushedChunks component.
|
|
4
6
|
* This component creates script and link elements for each chunk.
|
|
@@ -7,8 +9,10 @@ import * as React from 'react';
|
|
|
7
9
|
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
8
10
|
* @returns {React.ReactElement} The created script and link elements.
|
|
9
11
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
declare const FlushedChunks: ({
|
|
13
|
+
chunks
|
|
14
|
+
}: FlushedChunksProps) => React.FunctionComponentElement<{
|
|
15
|
+
children?: React.ReactNode | undefined;
|
|
12
16
|
}>;
|
|
13
17
|
/**
|
|
14
18
|
* FlushedChunksProps interface.
|
|
@@ -17,6 +21,9 @@ export declare const FlushedChunks: ({ chunks }: FlushedChunksProps) => React.Fu
|
|
|
17
21
|
* @interface
|
|
18
22
|
* @property {string[]} chunks - The chunks to be flushed.
|
|
19
23
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
interface FlushedChunksProps {
|
|
25
|
+
chunks: string[];
|
|
22
26
|
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { FlushedChunks, FlushedChunksProps };
|
|
29
|
+
//# sourceMappingURL=flushedChunks.d.ts.map
|
|
@@ -1,77 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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"));
|
|
1
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.js');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region utils/flushedChunks.ts
|
|
38
6
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
7
|
+
* FlushedChunks component.
|
|
8
|
+
* This component creates script and link elements for each chunk.
|
|
9
|
+
*
|
|
10
|
+
* @param {FlushedChunksProps} props - The properties of the component.
|
|
11
|
+
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
12
|
+
* @returns {React.ReactElement} The created script and link elements.
|
|
13
|
+
*/
|
|
46
14
|
const FlushedChunks = ({ chunks = [] }) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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);
|
|
15
|
+
const scripts = chunks.filter((c) => {
|
|
16
|
+
return c.endsWith(".js");
|
|
17
|
+
}).map((chunk) => {
|
|
18
|
+
if (!chunk.includes("?") && chunk.includes("remoteEntry")) chunk = chunk + "?t=" + Date.now();
|
|
19
|
+
return react.createElement("script", {
|
|
20
|
+
key: chunk,
|
|
21
|
+
src: chunk,
|
|
22
|
+
async: true
|
|
23
|
+
}, null);
|
|
24
|
+
});
|
|
25
|
+
const css = chunks.filter((c) => c.endsWith(".css")).map((chunk) => {
|
|
26
|
+
return react.createElement("link", {
|
|
27
|
+
key: chunk,
|
|
28
|
+
href: chunk,
|
|
29
|
+
rel: "stylesheet"
|
|
30
|
+
}, null);
|
|
31
|
+
});
|
|
32
|
+
return react.createElement(react.Fragment, null, css, scripts);
|
|
75
33
|
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
76
36
|
exports.FlushedChunks = FlushedChunks;
|
|
77
37
|
//# sourceMappingURL=flushedChunks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flushedChunks.js","
|
|
1
|
+
{"version":3,"file":"flushedChunks.js","names":["React"],"sources":["../../utils/flushedChunks.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * FlushedChunks component.\n * This component creates script and link elements for each chunk.\n *\n * @param {FlushedChunksProps} props - The properties of the component.\n * @param {string[]} props.chunks - The chunks to be flushed.\n * @returns {React.ReactElement} The created script and link elements.\n */\nexport const FlushedChunks = ({ chunks = [] }: FlushedChunksProps) => {\n const scripts = chunks\n .filter((c) => {\n // TODO: host shouldnt flush its own remote out\n // if(c.includes('?')) {\n // return c.split('?')[0].endsWith('.js')\n // }\n return c.endsWith('.js');\n })\n .map((chunk) => {\n if (!chunk.includes('?') && chunk.includes('remoteEntry')) {\n chunk = chunk + '?t=' + Date.now();\n }\n return React.createElement(\n 'script',\n {\n key: chunk,\n src: chunk,\n async: true,\n },\n null,\n );\n });\n\n const css = chunks\n .filter((c) => c.endsWith('.css'))\n .map((chunk) => {\n return React.createElement(\n 'link',\n {\n key: chunk,\n href: chunk,\n rel: 'stylesheet',\n },\n null,\n );\n });\n\n return React.createElement(React.Fragment, null, css, scripts);\n};\n\n/**\n * FlushedChunksProps interface.\n * This interface represents the properties of the FlushedChunks component.\n *\n * @interface\n * @property {string[]} chunks - The chunks to be flushed.\n */\nexport interface FlushedChunksProps {\n chunks: string[];\n}\n"],"mappings":";;;;;;;;;;;;;AAUA,MAAa,iBAAiB,EAAE,SAAS,EAAE,OAA2B;CACpE,MAAM,UAAU,OACb,QAAQ,MAAM;AAKb,SAAO,EAAE,SAAS,MAAM;GACxB,CACD,KAAK,UAAU;AACd,MAAI,CAAC,MAAM,SAAS,IAAI,IAAI,MAAM,SAAS,cAAc,CACvD,SAAQ,QAAQ,QAAQ,KAAK,KAAK;AAEpC,SAAOA,MAAM,cACX,UACA;GACE,KAAK;GACL,KAAK;GACL,OAAO;GACR,EACD,KACD;GACD;CAEJ,MAAM,MAAM,OACT,QAAQ,MAAM,EAAE,SAAS,OAAO,CAAC,CACjC,KAAK,UAAU;AACd,SAAOA,MAAM,cACX,QACA;GACE,KAAK;GACL,MAAM;GACN,KAAK;GACN,EACD,KACD;GACD;AAEJ,QAAOA,MAAM,cAAcA,MAAM,UAAU,MAAM,KAAK,QAAQ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region utils/flushedChunks.ts
|
|
4
|
+
/**
|
|
5
|
+
* FlushedChunks component.
|
|
6
|
+
* This component creates script and link elements for each chunk.
|
|
7
|
+
*
|
|
8
|
+
* @param {FlushedChunksProps} props - The properties of the component.
|
|
9
|
+
* @param {string[]} props.chunks - The chunks to be flushed.
|
|
10
|
+
* @returns {React.ReactElement} The created script and link elements.
|
|
11
|
+
*/
|
|
12
|
+
const FlushedChunks = ({ chunks = [] }) => {
|
|
13
|
+
const scripts = chunks.filter((c) => {
|
|
14
|
+
return c.endsWith(".js");
|
|
15
|
+
}).map((chunk) => {
|
|
16
|
+
if (!chunk.includes("?") && chunk.includes("remoteEntry")) chunk = chunk + "?t=" + Date.now();
|
|
17
|
+
return React.createElement("script", {
|
|
18
|
+
key: chunk,
|
|
19
|
+
src: chunk,
|
|
20
|
+
async: true
|
|
21
|
+
}, null);
|
|
22
|
+
});
|
|
23
|
+
const css = chunks.filter((c) => c.endsWith(".css")).map((chunk) => {
|
|
24
|
+
return React.createElement("link", {
|
|
25
|
+
key: chunk,
|
|
26
|
+
href: chunk,
|
|
27
|
+
rel: "stylesheet"
|
|
28
|
+
}, null);
|
|
29
|
+
});
|
|
30
|
+
return React.createElement(React.Fragment, null, css, scripts);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { FlushedChunks };
|
|
35
|
+
//# sourceMappingURL=flushedChunks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flushedChunks.mjs","names":[],"sources":["../../utils/flushedChunks.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * FlushedChunks component.\n * This component creates script and link elements for each chunk.\n *\n * @param {FlushedChunksProps} props - The properties of the component.\n * @param {string[]} props.chunks - The chunks to be flushed.\n * @returns {React.ReactElement} The created script and link elements.\n */\nexport const FlushedChunks = ({ chunks = [] }: FlushedChunksProps) => {\n const scripts = chunks\n .filter((c) => {\n // TODO: host shouldnt flush its own remote out\n // if(c.includes('?')) {\n // return c.split('?')[0].endsWith('.js')\n // }\n return c.endsWith('.js');\n })\n .map((chunk) => {\n if (!chunk.includes('?') && chunk.includes('remoteEntry')) {\n chunk = chunk + '?t=' + Date.now();\n }\n return React.createElement(\n 'script',\n {\n key: chunk,\n src: chunk,\n async: true,\n },\n null,\n );\n });\n\n const css = chunks\n .filter((c) => c.endsWith('.css'))\n .map((chunk) => {\n return React.createElement(\n 'link',\n {\n key: chunk,\n href: chunk,\n rel: 'stylesheet',\n },\n null,\n );\n });\n\n return React.createElement(React.Fragment, null, css, scripts);\n};\n\n/**\n * FlushedChunksProps interface.\n * This interface represents the properties of the FlushedChunks component.\n *\n * @interface\n * @property {string[]} chunks - The chunks to be flushed.\n */\nexport interface FlushedChunksProps {\n chunks: string[];\n}\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,iBAAiB,EAAE,SAAS,EAAE,OAA2B;CACpE,MAAM,UAAU,OACb,QAAQ,MAAM;AAKb,SAAO,EAAE,SAAS,MAAM;GACxB,CACD,KAAK,UAAU;AACd,MAAI,CAAC,MAAM,SAAS,IAAI,IAAI,MAAM,SAAS,cAAc,CACvD,SAAQ,QAAQ,QAAQ,KAAK,KAAK;AAEpC,SAAO,MAAM,cACX,UACA;GACE,KAAK;GACL,KAAK;GACL,OAAO;GACR,EACD,KACD;GACD;CAEJ,MAAM,MAAM,OACT,QAAQ,MAAM,EAAE,SAAS,OAAO,CAAC,CACjC,KAAK,UAAU;AACd,SAAO,MAAM,cACX,QACA;GACE,KAAK;GACL,MAAM;GACN,KAAK;GACN,EACD,KACD;GACD;AAEJ,QAAO,MAAM,cAAc,MAAM,UAAU,MAAM,KAAK,QAAQ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FlushedChunks, FlushedChunksProps } from "./flushedChunks.mjs";
|
|
2
|
+
import { flushChunks } from "@module-federation/node/utils";
|
|
3
|
+
|
|
4
|
+
//#region utils/index.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Revalidates the current state.
|
|
7
|
+
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
8
|
+
* 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.
|
|
9
|
+
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
10
|
+
*/
|
|
11
|
+
declare const revalidate: (fetchModule?: any, force?: boolean) => Promise<boolean>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { FlushedChunks, type FlushedChunksProps, flushChunks, revalidate };
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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';
|
|
1
|
+
import { FlushedChunks, FlushedChunksProps } from "./flushedChunks.js";
|
|
2
|
+
import { flushChunks } from "@module-federation/node/utils";
|
|
3
|
+
|
|
4
|
+
//#region utils/index.d.ts
|
|
14
5
|
/**
|
|
15
6
|
* Revalidates the current state.
|
|
16
7
|
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
17
8
|
* 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
9
|
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
19
10
|
*/
|
|
20
|
-
|
|
11
|
+
declare const revalidate: (fetchModule?: any, force?: boolean) => Promise<boolean>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { FlushedChunks, type FlushedChunksProps, flushChunks, revalidate };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/index.js
CHANGED
|
@@ -1,66 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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; } });
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.js');
|
|
3
|
+
const require_flushedChunks = require('./flushedChunks.js');
|
|
4
|
+
let _module_federation_node_utils = require("@module-federation/node/utils");
|
|
5
|
+
|
|
6
|
+
//#region utils/index.ts
|
|
43
7
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
}
|
|
8
|
+
* Revalidates the current state.
|
|
9
|
+
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
10
|
+
* 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.
|
|
11
|
+
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
12
|
+
*/
|
|
13
|
+
const revalidate = function(fetchModule = void 0, force = false) {
|
|
14
|
+
if (typeof window !== "undefined") {
|
|
15
|
+
console.error("revalidate should only be called server-side");
|
|
16
|
+
return Promise.resolve(false);
|
|
17
|
+
} else return import("@module-federation/node/utils").then(function(utils) {
|
|
18
|
+
return utils.revalidate(fetchModule, force);
|
|
19
|
+
});
|
|
64
20
|
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.FlushedChunks = require_flushedChunks.FlushedChunks;
|
|
24
|
+
Object.defineProperty(exports, 'flushChunks', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _module_federation_node_utils.flushChunks;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
65
30
|
exports.revalidate = revalidate;
|
|
66
31
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../utils/index.ts"],"sourcesContent":["/**\n * Flushes chunks from the module federation node utilities.\n * @module @module-federation/node/utils\n */\nexport { flushChunks } from '@module-federation/node/utils';\n\n/**\n * Exports the FlushedChunks component from the current directory.\n */\nexport { FlushedChunks } from './flushedChunks';\n\n/**\n * Exports the FlushedChunksProps type from the current directory.\n */\nexport type { FlushedChunksProps } from './flushedChunks';\n\n/**\n * Revalidates the current state.\n * If the function is called on the client side, it logs an error and returns a resolved promise with false.\n * 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.\n * @returns {Promise<boolean>} A promise that resolves with a boolean.\n */\nexport const revalidate = function (\n fetchModule: any = undefined,\n force = false,\n): Promise<boolean> {\n if (typeof window !== 'undefined') {\n console.error('revalidate should only be called server-side');\n return Promise.resolve(false);\n } else {\n return import('@module-federation/node/utils').then(function (utils) {\n return utils.revalidate(fetchModule, force);\n });\n }\n};\n"],"mappings":";;;;;;;;;;;;AAsBA,MAAa,aAAa,SACxB,cAAmB,QACnB,QAAQ,OACU;AAClB,KAAI,OAAO,WAAW,aAAa;AACjC,UAAQ,MAAM,+CAA+C;AAC7D,SAAO,QAAQ,QAAQ,MAAM;OAE7B,QAAO,OAAO,iCAAiC,KAAK,SAAU,OAAO;AACnE,SAAO,MAAM,WAAW,aAAa,MAAM;GAC3C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FlushedChunks } from "./flushedChunks.mjs";
|
|
2
|
+
import { flushChunks } from "@module-federation/node/utils";
|
|
3
|
+
|
|
4
|
+
//#region utils/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* Revalidates the current state.
|
|
7
|
+
* If the function is called on the client side, it logs an error and returns a resolved promise with false.
|
|
8
|
+
* 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.
|
|
9
|
+
* @returns {Promise<boolean>} A promise that resolves with a boolean.
|
|
10
|
+
*/
|
|
11
|
+
const revalidate = function(fetchModule = void 0, force = false) {
|
|
12
|
+
if (typeof window !== "undefined") {
|
|
13
|
+
console.error("revalidate should only be called server-side");
|
|
14
|
+
return Promise.resolve(false);
|
|
15
|
+
} else return import("@module-federation/node/utils").then(function(utils) {
|
|
16
|
+
return utils.revalidate(fetchModule, force);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FlushedChunks, flushChunks, revalidate };
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../utils/index.ts"],"sourcesContent":["/**\n * Flushes chunks from the module federation node utilities.\n * @module @module-federation/node/utils\n */\nexport { flushChunks } from '@module-federation/node/utils';\n\n/**\n * Exports the FlushedChunks component from the current directory.\n */\nexport { FlushedChunks } from './flushedChunks';\n\n/**\n * Exports the FlushedChunksProps type from the current directory.\n */\nexport type { FlushedChunksProps } from './flushedChunks';\n\n/**\n * Revalidates the current state.\n * If the function is called on the client side, it logs an error and returns a resolved promise with false.\n * 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.\n * @returns {Promise<boolean>} A promise that resolves with a boolean.\n */\nexport const revalidate = function (\n fetchModule: any = undefined,\n force = false,\n): Promise<boolean> {\n if (typeof window !== 'undefined') {\n console.error('revalidate should only be called server-side');\n return Promise.resolve(false);\n } else {\n return import('@module-federation/node/utils').then(function (utils) {\n return utils.revalidate(fetchModule, force);\n });\n }\n};\n"],"mappings":";;;;;;;;;;AAsBA,MAAa,aAAa,SACxB,cAAmB,QACnB,QAAQ,OACU;AAClB,KAAI,OAAO,WAAW,aAAa;AACjC,UAAQ,MAAM,+CAA+C;AAC7D,SAAO,QAAQ,QAAQ,MAAM;OAE7B,QAAO,OAAO,iCAAiC,KAAK,SAAU,OAAO;AACnE,SAAO,MAAM,WAAW,aAAa,MAAM;GAC3C"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/nextjs-mf",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.57",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
|
+
"module": "dist/src/index.mjs",
|
|
6
7
|
"types": "dist/src/index.d.ts",
|
|
7
8
|
"type": "commonjs",
|
|
8
9
|
"description": "Module Federation helper for NextJS",
|
|
@@ -20,8 +21,26 @@
|
|
|
20
21
|
"README.md"
|
|
21
22
|
],
|
|
22
23
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/src/index.d.mts",
|
|
27
|
+
"default": "./dist/src/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/src/index.d.ts",
|
|
31
|
+
"default": "./dist/src/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./utils": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/utils/index.d.mts",
|
|
37
|
+
"default": "./dist/utils/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/utils/index.d.ts",
|
|
41
|
+
"default": "./dist/utils/index.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
25
44
|
"./*": "./*"
|
|
26
45
|
},
|
|
27
46
|
"typesVersions": {
|
|
@@ -39,16 +58,17 @@
|
|
|
39
58
|
},
|
|
40
59
|
"dependencies": {
|
|
41
60
|
"fast-glob": "^3.2.11",
|
|
42
|
-
"@module-federation/sdk": "2.0
|
|
43
|
-
"@module-federation/runtime": "2.0
|
|
44
|
-
"@module-federation/enhanced": "2.0
|
|
45
|
-
"@module-federation/node": "2.7.
|
|
46
|
-
"@module-federation/webpack-bundler-runtime": "2.0
|
|
61
|
+
"@module-federation/sdk": "2.1.0",
|
|
62
|
+
"@module-federation/runtime": "2.1.0",
|
|
63
|
+
"@module-federation/enhanced": "2.1.0",
|
|
64
|
+
"@module-federation/node": "2.7.33",
|
|
65
|
+
"@module-federation/webpack-bundler-runtime": "2.1.0"
|
|
47
66
|
},
|
|
48
67
|
"devDependencies": {
|
|
49
68
|
"@types/btoa": "^1.2.5",
|
|
50
69
|
"@types/react": "^18.3.1",
|
|
51
|
-
"@types/react-dom": "^18.3.1"
|
|
70
|
+
"@types/react-dom": "^18.3.1",
|
|
71
|
+
"tsdown": "0.20.3"
|
|
52
72
|
},
|
|
53
73
|
"peerDependencies": {
|
|
54
74
|
"webpack": "^5.40.0",
|
package/dist/client/UrlNode.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This class provides a logic of sorting dynamic routes in NextJS.
|
|
3
|
-
*
|
|
4
|
-
* It was copied from
|
|
5
|
-
* @see https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/sorted-routes.ts
|
|
6
|
-
*/
|
|
7
|
-
export declare class UrlNode {
|
|
8
|
-
placeholder: boolean;
|
|
9
|
-
children: Map<string, UrlNode>;
|
|
10
|
-
slugName: string | null;
|
|
11
|
-
restSlugName: string | null;
|
|
12
|
-
optionalRestSlugName: string | null;
|
|
13
|
-
insert(urlPath: string): void;
|
|
14
|
-
smoosh(): string[];
|
|
15
|
-
private _smoosh;
|
|
16
|
-
private _insert;
|
|
17
|
-
}
|
package/dist/node.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@module-federation/node';
|
package/dist/node.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@module-federation/node"), exports);
|
|
18
|
-
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
package/dist/package.json
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@module-federation/nextjs-mf",
|
|
3
|
-
"version": "8.8.56",
|
|
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
|
-
"scripts": {
|
|
23
|
-
"postinstall": "echo \"Deprecation Notice: We intend to deprecate 'nextjs-mf'. Please see https://github.com/module-federation/core/issues/3153 for more details.\""
|
|
24
|
-
},
|
|
25
|
-
"exports": {
|
|
26
|
-
".": "./dist/src/index.js",
|
|
27
|
-
"./utils": "./dist/utils/index.js",
|
|
28
|
-
"./*": "./*"
|
|
29
|
-
},
|
|
30
|
-
"typesVersions": {
|
|
31
|
-
"*": {
|
|
32
|
-
".": [
|
|
33
|
-
"./dist/src/index.d.ts"
|
|
34
|
-
],
|
|
35
|
-
"utils": [
|
|
36
|
-
"./dist/utils/index.d.ts"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"publishConfig": {
|
|
41
|
-
"access": "public"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"fast-glob": "^3.2.11",
|
|
45
|
-
"@module-federation/runtime": "workspace:*",
|
|
46
|
-
"@module-federation/sdk": "workspace:*",
|
|
47
|
-
"@module-federation/enhanced": "workspace:*",
|
|
48
|
-
"@module-federation/node": "workspace:*",
|
|
49
|
-
"@module-federation/webpack-bundler-runtime": "workspace:*"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@types/btoa": "^1.2.5",
|
|
53
|
-
"@types/react": "^18.3.1",
|
|
54
|
-
"@types/react-dom": "^18.3.1"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"webpack": "^5.40.0",
|
|
58
|
-
"next": "^12 || ^13 || ^14 || ^15",
|
|
59
|
-
"react": "^17 || ^18 || ^19",
|
|
60
|
-
"react-dom": "^17 || ^18 || ^19",
|
|
61
|
-
"styled-jsx": "*"
|
|
62
|
-
},
|
|
63
|
-
"peerDependenciesMeta": {
|
|
64
|
-
"webpack": {
|
|
65
|
-
"optional": true
|
|
66
|
-
},
|
|
67
|
-
"next": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"react": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"react-dom": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"styled-jsx": {
|
|
77
|
-
"optional": true
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require('next/head');
|
|
3
|
-
require('next/router');
|
|
4
|
-
require('next/link');
|
|
5
|
-
require('next/script');
|
|
6
|
-
require('next/image');
|
|
7
|
-
require('next/dynamic');
|
|
8
|
-
require('next/error');
|
|
9
|
-
require('next/amp');
|
|
10
|
-
require('styled-jsx');
|
|
11
|
-
require('styled-jsx/style');
|
|
12
|
-
require('next/image');
|
|
13
|
-
// require('react/jsx-dev-runtime');
|
|
14
|
-
require('react/jsx-runtime');
|
|
15
|
-
//# sourceMappingURL=federation-noop.js.map
|