@rayburst/cli 0.1.17 → 0.1.18
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/bin/rayburst.js +2 -18
- package/package.json +4 -12
- package/server.js +3 -44
- package/src/main.tsx +105 -6
- package/vite.config.ts +3 -4
- package/dist/assets/_commonjsHelpers-B85MJLTf.js +0 -5
- package/dist/assets/hostInit-BWYxHpMp.js +0 -9
- package/dist/assets/index-9R1akZrm.js +0 -578
- package/dist/assets/index-BW-RulSg.js +0 -258
- package/dist/assets/index-VnAMn3JB.js +0 -16587
- package/dist/assets/preload-helper-Dea3Szod.js +0 -54
- package/dist/assets/rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__-CHUYMhiU.js +0 -35
- package/dist/assets/rayburstCli__loadShare__react__loadShare__-CE7VtFm0.js +0 -19
- package/dist/assets/rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js +0 -4173
- package/dist/assets/remoteEntry-B8biLITo.js +0 -122
- package/dist/assets/virtualExposes-DwA08f_D.js +0 -5
- package/dist/index.html +0 -56
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
2
|
-
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
3
|
-
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
4
|
-
})();const assetsURL = function(dep) { return "/"+dep };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
5
|
-
let promise = Promise.resolve();
|
|
6
|
-
if (true && deps && deps.length > 0) {
|
|
7
|
-
document.getElementsByTagName("link");
|
|
8
|
-
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
9
|
-
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
10
|
-
function allSettled(promises$2) {
|
|
11
|
-
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
12
|
-
status: "fulfilled",
|
|
13
|
-
value: value$1
|
|
14
|
-
}), (reason) => ({
|
|
15
|
-
status: "rejected",
|
|
16
|
-
reason
|
|
17
|
-
}))));
|
|
18
|
-
}
|
|
19
|
-
promise = allSettled(deps.map((dep) => {
|
|
20
|
-
dep = assetsURL(dep);
|
|
21
|
-
if (dep in seen) return;
|
|
22
|
-
seen[dep] = true;
|
|
23
|
-
const isCss = dep.endsWith(".css");
|
|
24
|
-
const cssSelector = isCss ? "[rel=\"stylesheet\"]" : "";
|
|
25
|
-
if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
26
|
-
const link = document.createElement("link");
|
|
27
|
-
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
28
|
-
if (!isCss) link.as = "script";
|
|
29
|
-
link.crossOrigin = "";
|
|
30
|
-
link.href = dep;
|
|
31
|
-
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
32
|
-
document.head.appendChild(link);
|
|
33
|
-
if (isCss) return new Promise((res, rej) => {
|
|
34
|
-
link.addEventListener("load", res);
|
|
35
|
-
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
36
|
-
});
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
function handlePreloadError(err$2) {
|
|
40
|
-
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
41
|
-
e$1.payload = err$2;
|
|
42
|
-
window.dispatchEvent(e$1);
|
|
43
|
-
if (!e$1.defaultPrevented) throw err$2;
|
|
44
|
-
}
|
|
45
|
-
return promise.then((res) => {
|
|
46
|
-
for (const item of res || []) {
|
|
47
|
-
if (item.status !== "rejected") continue;
|
|
48
|
-
handlePreloadError(item.reason);
|
|
49
|
-
}
|
|
50
|
-
return baseModule().catch(handlePreloadError);
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export { __vitePreload as _ };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
|
|
2
|
-
import { r as rayburstCli__mf_v__runtimeInit__mf_v__, a as index_cjs } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
|
|
3
|
-
|
|
4
|
-
function _mergeNamespaces(n, m) {
|
|
5
|
-
for (var i = 0; i < m.length; i++) {
|
|
6
|
-
const e = m[i];
|
|
7
|
-
if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
|
|
8
|
-
if (k !== 'default' && !(k in n)) {
|
|
9
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
-
if (d) {
|
|
11
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: () => e[k]
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
} }
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const {loadRemote} = index_cjs;
|
|
23
|
-
const {initPromise} = rayburstCli__mf_v__runtimeInit__mf_v__;
|
|
24
|
-
const res = initPromise.then(_ => loadRemote("rayburstApp/App"));
|
|
25
|
-
const exportModule = await initPromise.then(_ => res);
|
|
26
|
-
var rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__ = exportModule;
|
|
27
|
-
|
|
28
|
-
const rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote___default = /*@__PURE__*/getDefaultExportFromCjs(rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__);
|
|
29
|
-
|
|
30
|
-
const rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__$1 = /*#__PURE__*/_mergeNamespaces({
|
|
31
|
-
__proto__: null,
|
|
32
|
-
default: rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote___default
|
|
33
|
-
}, [rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__]);
|
|
34
|
-
|
|
35
|
-
export { rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__$1 as r };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
|
|
2
|
-
import { r as rayburstCli__mf_v__runtimeInit__mf_v__, a as index_cjs } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
|
|
3
|
-
|
|
4
|
-
// dev uses dynamic import to separate chunks
|
|
5
|
-
|
|
6
|
-
const {loadShare} = index_cjs;
|
|
7
|
-
const {initPromise} = rayburstCli__mf_v__runtimeInit__mf_v__;
|
|
8
|
-
const res = initPromise.then(_ => loadShare("react", {
|
|
9
|
-
customShareInfo: {shareConfig:{
|
|
10
|
-
singleton: true,
|
|
11
|
-
strictVersion: false,
|
|
12
|
-
requiredVersion: "^19.0.0"
|
|
13
|
-
}}}));
|
|
14
|
-
const exportModule = await res.then(factory => factory());
|
|
15
|
-
var rayburstCli__loadShare__react__loadShare__ = exportModule;
|
|
16
|
-
|
|
17
|
-
const React = /*@__PURE__*/getDefaultExportFromCjs(rayburstCli__loadShare__react__loadShare__);
|
|
18
|
-
|
|
19
|
-
export { React as R, rayburstCli__loadShare__react__loadShare__ as r };
|