@satilian/plugin-mf 1.0.0 → 1.0.1
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/README.md +2 -2
- package/dist/build/bootstrap.js +1 -1
- package/dist/build/resolver.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ stopped. Legacy providers without versioned paths cannot offer these guarantees.
|
|
|
79
79
|
Configure the cache before creating remotes or starting SSR:
|
|
80
80
|
|
|
81
81
|
```ts
|
|
82
|
-
import { configureServerCache } from "plugin-mf/server";
|
|
82
|
+
import { configureServerCache } from "@satilian/plugin-mf/server";
|
|
83
83
|
|
|
84
84
|
configureServerCache({
|
|
85
85
|
cacheDir: "./.cache/mf",
|
|
@@ -129,7 +129,7 @@ typesTimeoutMs: 15000, retries: 2, retryDelayMs: 100,
|
|
|
129
129
|
circuitBreaker: { failureThreshold: 3, cooldownMs: 10000 } } })` задаёт политику
|
|
130
130
|
сборки и runtime. Все поля необязательны; в примере показаны значения по умолчанию.
|
|
131
131
|
Вручную созданные загрузчики настраиваются через `configureLoading` из
|
|
132
|
-
|
|
132
|
+
`@satilian/plugin-mf/client` или `@satilian/plugin-mf/server` до начала загрузок. Настройка общая для
|
|
133
133
|
одного JS realm, включая вложенные remote bundles; consumer задаёт общую политику,
|
|
134
134
|
providers не должны переопределять её своими значениями `loading`.
|
|
135
135
|
|
package/dist/build/bootstrap.js
CHANGED
|
@@ -41,7 +41,7 @@ function createSharedBootstrap(requirements) {
|
|
|
41
41
|
const registrations = shared.map((request, index)=>`registerShared(${JSON.stringify(request)}, shared${index}, ${JSON.stringify(requirements[request].version)}, "default", ${requirements[request].singleton});`).join("\n");
|
|
42
42
|
const source = `
|
|
43
43
|
${imports}
|
|
44
|
-
import { getShared, registerShared } from "plugin-mf/shared";
|
|
44
|
+
import { getShared, registerShared } from "@satilian/plugin-mf/shared";
|
|
45
45
|
|
|
46
46
|
${registrations}
|
|
47
47
|
globalThis.__MF_GET_SHARED__ = getShared;
|
package/dist/build/resolver.js
CHANGED
|
@@ -5,7 +5,7 @@ const resolver = (request, remoteNames, env)=>{
|
|
|
5
5
|
const expose = rest.join("/") || "default";
|
|
6
6
|
const scope = "node" === env ? "server" : "client";
|
|
7
7
|
const code = `
|
|
8
|
-
import { createRemoteComponent } from "plugin-mf/${scope}";
|
|
8
|
+
import { createRemoteComponent } from "@satilian/plugin-mf/${scope}";
|
|
9
9
|
export default createRemoteComponent(${JSON.stringify(maybeRemote)}, ${JSON.stringify(expose)});
|
|
10
10
|
`;
|
|
11
11
|
return `data:text/javascript,${encodeURIComponent(code)}`;
|