brumate 0.8.1 → 0.9.0
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/{boot-DQuAhAd5.d.ts → boot-ej-9NRT3.d.ts} +20 -2
- package/dist/cli.js +88 -82
- package/dist/cli.js.map +1 -1
- package/dist/{client-CwVcmymi.js → client-B-ww-PQ7.js} +304 -48
- package/dist/client-B-ww-PQ7.js.map +1 -0
- package/dist/{client-4eabQtYJ.d.ts → client-Do6IBIhI.d.ts} +35 -9
- package/dist/{defer-BaXWydb0.js → defer-JD2FK9mV.js} +5 -3
- package/dist/defer-JD2FK9mV.js.map +1 -0
- package/dist/{devtools-calls-DGW6nLZ2.js → devtools-calls-DCjuSkim.js} +3 -3
- package/dist/{devtools-calls-DGW6nLZ2.js.map → devtools-calls-DCjuSkim.js.map} +1 -1
- package/dist/{devtools-panel-Cq8LpsyW.js → devtools-panel-DLeWTPhU.js} +4 -4
- package/dist/{devtools-panel-Cq8LpsyW.js.map → devtools-panel-DLeWTPhU.js.map} +1 -1
- package/dist/{devtools-CMuj12yR.js → devtools-tuq7ATGN.js} +10 -7
- package/dist/devtools-tuq7ATGN.js.map +1 -0
- package/dist/{error-catalog-DakxjSgj.js → error-catalog-BBWB7w-E.js} +11 -4
- package/dist/error-catalog-BBWB7w-E.js.map +1 -0
- package/dist/{error-catalog-VxLbz-6p.js → error-catalog-CbmQqfat.js} +1 -1
- package/dist/{events-LgLdp1R7.js → events-BDVITj3P.js} +3 -5
- package/dist/events-BDVITj3P.js.map +1 -0
- package/dist/{features-DwMYKBIC.js → features-Cte5aj20.js} +8 -2
- package/dist/features-Cte5aj20.js.map +1 -0
- package/dist/{files-DXS8RAtZ.js → files-Bz0lAQzD.js} +2 -2
- package/dist/{files-DXS8RAtZ.js.map → files-Bz0lAQzD.js.map} +1 -1
- package/dist/{html-Cf5uKhLs.js → html-BYuHDvxy.js} +10 -3
- package/dist/html-BYuHDvxy.js.map +1 -0
- package/dist/index.d.ts +71 -19
- package/dist/index.js +3 -3
- package/dist/{inspect-B5AoHh5O.js → inspect-fpaBJ5pm.js} +1247 -62
- package/dist/inspect-fpaBJ5pm.js.map +1 -0
- package/dist/{loader-CTeT6ie9.js → loader-DMxuZ6He.js} +14 -6
- package/dist/loader-DMxuZ6He.js.map +1 -0
- package/dist/{navigate-Bj73X4ZS.js → navigate-C5PjwYMh.js} +101 -20
- package/dist/navigate-C5PjwYMh.js.map +1 -0
- package/dist/{produce-CLABZ8k2.d.ts → produce-BDkCsGH7.d.ts} +3 -3
- package/dist/{rpc-kVB0Ujdx.js → rpc-DOdrekhP.js} +23 -13
- package/dist/rpc-DOdrekhP.js.map +1 -0
- package/dist/runtime/bundles.d.ts +1 -1
- package/dist/runtime/bundles.js +6 -2
- package/dist/runtime/bundles.js.map +1 -1
- package/dist/runtime/client.d.ts +4 -3
- package/dist/runtime/client.js +5 -5
- package/dist/runtime/devtools.d.ts +3 -1
- package/dist/runtime/devtools.js +1 -1
- package/dist/runtime/events.js +1 -1
- package/dist/runtime/hot.d.ts +1 -1
- package/dist/runtime/html.js +1 -1
- package/dist/runtime/loader.d.ts +2 -2
- package/dist/runtime/loader.js +2 -2
- package/dist/runtime/otel.d.ts +18 -0
- package/dist/runtime/otel.js +127 -0
- package/dist/runtime/otel.js.map +1 -0
- package/dist/runtime/server.d.ts +4 -3
- package/dist/runtime/server.js +5 -5
- package/dist/runtime/signals.d.ts +2 -2
- package/dist/runtime/signals.js +4 -1
- package/dist/runtime/signals.js.map +1 -1
- package/dist/runtime/static-loader.d.ts +2 -2
- package/dist/runtime/static-loader.js +1 -1
- package/dist/runtime/store.d.ts +2 -2
- package/dist/runtime/store.js +1 -1
- package/dist/runtime/testing.d.ts +2 -2
- package/dist/runtime/testing.js +2 -2
- package/dist/search-params-qGERTLi3.js +382 -0
- package/dist/search-params-qGERTLi3.js.map +1 -0
- package/dist/{serial-ribg9NAj.js → serial-B2AJ9VGx.js} +1 -1
- package/dist/{serial-ioa17MuY.js → serial-Cj6pDGOq.js} +6 -6
- package/dist/{serial-ioa17MuY.js.map → serial-Cj6pDGOq.js.map} +1 -1
- package/dist/{server-DesBZv5g.d.ts → server-2-LS_KFo.d.ts} +125 -9
- package/dist/{server-BUuf7XPZ.js → server-CRGZMWnK.js} +545 -236
- package/dist/server-CRGZMWnK.js.map +1 -0
- package/dist/{shared-CX_YacDm.js → shared-CUBWrbiM.js} +4 -4
- package/dist/{shared-CX_YacDm.js.map → shared-CUBWrbiM.js.map} +1 -1
- package/dist/sheets-B9Zr50mf.js +105 -0
- package/dist/sheets-B9Zr50mf.js.map +1 -0
- package/dist/{signals-7VVD9C_H.d.ts → signals-BgsJK-uT.d.ts} +16 -6
- package/dist/{static-loader-BM0-wdIc.js → static-loader-BDBtWsdg.js} +107 -19
- package/dist/static-loader-BDBtWsdg.js.map +1 -0
- package/dist/{static-loader-BSAyFqG0.d.ts → static-loader-CAFn6p0l.d.ts} +2 -2
- package/dist/{store-9_oa0HG1.d.ts → store-BwWg-Iei.d.ts} +79 -2
- package/dist/store-DNr24Z8L.js +950 -0
- package/dist/store-DNr24Z8L.js.map +1 -0
- package/dist/{stream-read-BTsYstJY.js → stream-read-CiLDH60b.js} +2 -2
- package/dist/{stream-read-BTsYstJY.js.map → stream-read-CiLDH60b.js.map} +1 -1
- package/dist/{stream-read-Dek3HnqO.js → stream-read-DVoregpA.js} +1 -1
- package/dist/trace-DT7RGRAV.d.ts +52 -0
- package/dist/trace-browser-C7MFMove.js +170 -0
- package/dist/trace-browser-C7MFMove.js.map +1 -0
- package/dist/trace-flag-Dy267snx.js +7 -0
- package/dist/trace-flag-Dy267snx.js.map +1 -0
- package/dist/{trusted-g_zUJbh2.js → trusted-Bmwg4_hf.js} +12 -5
- package/dist/trusted-Bmwg4_hf.js.map +1 -0
- package/dist/view-transitions-BpnVwtS4.js +141 -0
- package/dist/view-transitions-BpnVwtS4.js.map +1 -0
- package/dist/vite.d.ts +8 -1
- package/dist/vite.js +356 -46
- package/dist/vite.js.map +1 -1
- package/elements.d.ts +8 -0
- package/package.json +13 -1
- package/skills/brumate/SKILL.md +9 -5
- package/skills/brumate/references/errors.md +95 -14
- package/skills/brumate/references/events.md +27 -1
- package/skills/brumate/references/signals.md +4 -4
- package/skills/brumate/references/state.md +79 -4
- package/skills/brumate/references/syntax.md +58 -9
- package/dist/client-CwVcmymi.js.map +0 -1
- package/dist/defer-BaXWydb0.js.map +0 -1
- package/dist/devtools-CMuj12yR.js.map +0 -1
- package/dist/error-catalog-DakxjSgj.js.map +0 -1
- package/dist/events-LgLdp1R7.js.map +0 -1
- package/dist/features-DwMYKBIC.js.map +0 -1
- package/dist/html-Cf5uKhLs.js.map +0 -1
- package/dist/inspect-B5AoHh5O.js.map +0 -1
- package/dist/loader-CTeT6ie9.js.map +0 -1
- package/dist/navigate-Bj73X4ZS.js.map +0 -1
- package/dist/rpc-kVB0Ujdx.js.map +0 -1
- package/dist/search-params-Wg-0FsMj.js +0 -148
- package/dist/search-params-Wg-0FsMj.js.map +0 -1
- package/dist/server-BUuf7XPZ.js.map +0 -1
- package/dist/static-loader-BM0-wdIc.js.map +0 -1
- package/dist/store-Cy4EEyZ7.js +0 -439
- package/dist/store-Cy4EEyZ7.js.map +0 -1
- package/dist/trusted-g_zUJbh2.js.map +0 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { x as HAS_VIEW_TRANSITIONS } from "./features-Cte5aj20.js";
|
|
2
|
+
//#region src/runtime/view-transitions.ts
|
|
3
|
+
const DEV = import.meta.env?.DEV;
|
|
4
|
+
const MARKED = "[b-vt],[b-vtn]";
|
|
5
|
+
/** The number that names an element, kept for the element so it keeps its name when a list moves it. */
|
|
6
|
+
const numbers = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let counter = 0;
|
|
8
|
+
/** True when an element is at least partly inside the viewport. */
|
|
9
|
+
function isVisible(element) {
|
|
10
|
+
const box = element.getBoundingClientRect();
|
|
11
|
+
return box.width + box.height > 0 && box.bottom > 0 && box.right > 0 && box.top < innerHeight && box.left < innerWidth;
|
|
12
|
+
}
|
|
13
|
+
/** Names that CSS keeps for itself: `none` and `auto` are values, the others are keywords of every property. */
|
|
14
|
+
const RESERVED = /* @__PURE__ */ new Set([
|
|
15
|
+
"none",
|
|
16
|
+
"auto",
|
|
17
|
+
"initial",
|
|
18
|
+
"inherit",
|
|
19
|
+
"unset",
|
|
20
|
+
"revert",
|
|
21
|
+
"revert-layer",
|
|
22
|
+
"default"
|
|
23
|
+
]);
|
|
24
|
+
/** The transitions that hold a name on an element, so a transition that ends leaves the names of a newer one. */
|
|
25
|
+
const owners = /* @__PURE__ */ new Map();
|
|
26
|
+
/** Says which element a warning is about, such as `<li class="card">`. */
|
|
27
|
+
function describe(element) {
|
|
28
|
+
return `<${element.localName}${element.id ? `#${element.id}` : ""}${element.classList.length > 0 ? `.${[...element.classList].join(".")}` : ""}>`;
|
|
29
|
+
}
|
|
30
|
+
/** Escapes text so it is one CSS identifier: `5` is `\35 `, and a space stays in the name. */
|
|
31
|
+
function escapeIdent(text) {
|
|
32
|
+
return typeof CSS !== "undefined" && typeof CSS.escape === "function" ? CSS.escape(text) : text;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The name of a marked element: its own `viewTransitionName`, or the class and a number. The name
|
|
36
|
+
* is escaped to a CSS identifier, so an ID such as `5` or a name with a space pairs on two pages.
|
|
37
|
+
* Returns undefined for a name that CSS keeps, with a warning in development.
|
|
38
|
+
*/
|
|
39
|
+
function nameOf(element) {
|
|
40
|
+
const own = element.getAttribute("b-vtn");
|
|
41
|
+
if (own) {
|
|
42
|
+
if (RESERVED.has(own.toLowerCase())) {
|
|
43
|
+
if (DEV) console.warn(`${describe(element)} has the view transition name "${own}", which CSS keeps. Give it another name.`);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
return escapeIdent(own);
|
|
47
|
+
}
|
|
48
|
+
let number = numbers.get(element);
|
|
49
|
+
if (number === void 0) {
|
|
50
|
+
number = ++counter;
|
|
51
|
+
numbers.set(element, number);
|
|
52
|
+
}
|
|
53
|
+
const first = (element.getAttribute("b-vt") ?? "").trim().split(/\s+/)[0];
|
|
54
|
+
return escapeIdent(`${first || "vt"}-${number}`);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Names the marked elements that are in view and have no name yet, and adds them to `named`. An
|
|
58
|
+
* element that a transition still running has named is shared, and keeps its name. An element
|
|
59
|
+
* whose name is taken by another one of the page is left without one, since two elements with a
|
|
60
|
+
* name make the browser skip the transition.
|
|
61
|
+
*/
|
|
62
|
+
function nameElements(named) {
|
|
63
|
+
const taken = /* @__PURE__ */ new Set();
|
|
64
|
+
for (const element of owners.keys()) if (element.isConnected) taken.add(element.style.viewTransitionName);
|
|
65
|
+
for (const element of document.querySelectorAll(MARKED)) {
|
|
66
|
+
if (named.has(element) || !isVisible(element)) continue;
|
|
67
|
+
if (owners.has(element)) {
|
|
68
|
+
named.add(element);
|
|
69
|
+
owners.set(element, owners.get(element) + 1);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const name = nameOf(element)?.trimEnd();
|
|
73
|
+
if (name === void 0) continue;
|
|
74
|
+
if (taken.has(name)) {
|
|
75
|
+
if (DEV) console.warn(`${describe(element)} has the view transition name "${name}", which another element has. It gets none.`);
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
element.style.viewTransitionName = name;
|
|
79
|
+
if (element.style.viewTransitionName === "") {
|
|
80
|
+
if (DEV) console.warn(`${describe(element)} has the view transition name "${name}", which is not a CSS identifier. It gets none.`);
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
taken.add(name);
|
|
84
|
+
const own = element.getAttribute("b-vt");
|
|
85
|
+
if (own) element.style.setProperty("view-transition-class", own);
|
|
86
|
+
named.add(element);
|
|
87
|
+
owners.set(element, 1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Removes the names that a transition set, except those that a newer transition still holds. */
|
|
91
|
+
function clearNames(named) {
|
|
92
|
+
for (const element of named) {
|
|
93
|
+
const count = (owners.get(element) ?? 1) - 1;
|
|
94
|
+
if (count > 0) {
|
|
95
|
+
owners.set(element, count);
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
owners.delete(element);
|
|
99
|
+
element.style.removeProperty("view-transition-name");
|
|
100
|
+
element.style.removeProperty("view-transition-class");
|
|
101
|
+
if (element.getAttribute("style") === "") element.removeAttribute("style");
|
|
102
|
+
}
|
|
103
|
+
named.clear();
|
|
104
|
+
}
|
|
105
|
+
/** Starts the transition, with `types` when the browser knows them. */
|
|
106
|
+
function begin(update, types) {
|
|
107
|
+
return types.length > 0 && typeof ViewTransition !== "undefined" && "types" in ViewTransition.prototype ? document.startViewTransition({
|
|
108
|
+
update,
|
|
109
|
+
types
|
|
110
|
+
}) : document.startViewTransition(update);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Starts a view transition around `update`, with `types` when the browser knows them. A page that
|
|
114
|
+
* marks elements gets them named for the transition, and unnamed when it ends.
|
|
115
|
+
*/
|
|
116
|
+
function startTransition(update, types) {
|
|
117
|
+
if (!HAS_VIEW_TRANSITIONS) return begin(update, types);
|
|
118
|
+
const named = /* @__PURE__ */ new Set();
|
|
119
|
+
nameElements(named);
|
|
120
|
+
async function run() {
|
|
121
|
+
try {
|
|
122
|
+
return await update();
|
|
123
|
+
} finally {
|
|
124
|
+
nameElements(named);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
let started;
|
|
128
|
+
try {
|
|
129
|
+
started = begin(run, types);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
clearNames(named);
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
134
|
+
const clear = () => clearNames(named);
|
|
135
|
+
started.finished.then(clear, clear);
|
|
136
|
+
return started;
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
export { startTransition as t };
|
|
140
|
+
|
|
141
|
+
//# sourceMappingURL=view-transitions-BpnVwtS4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-transitions-BpnVwtS4.js","names":[],"sources":["../src/runtime/view-transitions.ts"],"sourcesContent":["// Starts the view transitions of `transition()` and of client navigation. The elements that a page\n// marks with `viewTransition` and `viewTransitionName` (written `b-vt` and `b-vtn`) get a\n// `view-transition-name` only while a transition runs, so nothing takes part in a transition that\n// did not ask for it.\nimport { HAS_VIEW_TRANSITIONS } from './features.ts';\n\nconst DEV = (import.meta as { env?: { DEV?: boolean } }).env?.DEV;\n\nconst MARKED = '[b-vt],[b-vtn]';\n\n/** The number that names an element, kept for the element so it keeps its name when a list moves it. */\nconst numbers = new WeakMap<Element, number>();\nlet counter = 0;\n\n/** True when an element is at least partly inside the viewport. */\nfunction isVisible(element: Element): boolean {\n const box = element.getBoundingClientRect();\n return (\n box.width + box.height > 0 &&\n box.bottom > 0 &&\n box.right > 0 &&\n box.top < innerHeight &&\n box.left < innerWidth\n );\n}\n\n/** Names that CSS keeps for itself: `none` and `auto` are values, the others are keywords of every property. */\nconst RESERVED = new Set([\n 'none',\n 'auto',\n 'initial',\n 'inherit',\n 'unset',\n 'revert',\n 'revert-layer',\n 'default',\n]);\n\n/** The transitions that hold a name on an element, so a transition that ends leaves the names of a newer one. */\nconst owners = new Map<HTMLElement, number>();\n\n/** Says which element a warning is about, such as `<li class=\"card\">`. */\nfunction describe(element: Element): string {\n const tag = element.localName;\n const id = element.id ? `#${element.id}` : '';\n const classes = element.classList.length > 0 ? `.${[...element.classList].join('.')}` : '';\n return `<${tag}${id}${classes}>`;\n}\n\n/** Escapes text so it is one CSS identifier: `5` is `\\35 `, and a space stays in the name. */\nfunction escapeIdent(text: string): string {\n return typeof CSS !== 'undefined' && typeof CSS.escape === 'function' ? CSS.escape(text) : text;\n}\n\n/**\n * The name of a marked element: its own `viewTransitionName`, or the class and a number. The name\n * is escaped to a CSS identifier, so an ID such as `5` or a name with a space pairs on two pages.\n * Returns undefined for a name that CSS keeps, with a warning in development.\n */\nfunction nameOf(element: HTMLElement): string | undefined {\n const own = element.getAttribute('b-vtn');\n if (own) {\n if (RESERVED.has(own.toLowerCase())) {\n if (DEV) {\n console.warn(\n `${describe(element)} has the view transition name \"${own}\", which CSS keeps. Give it another name.`,\n );\n }\n return undefined;\n }\n return escapeIdent(own);\n }\n let number = numbers.get(element);\n if (number === undefined) {\n number = ++counter;\n numbers.set(element, number);\n }\n const first = (element.getAttribute('b-vt') ?? '').trim().split(/\\s+/)[0];\n return escapeIdent(`${first || 'vt'}-${number}`);\n}\n\n/**\n * Names the marked elements that are in view and have no name yet, and adds them to `named`. An\n * element that a transition still running has named is shared, and keeps its name. An element\n * whose name is taken by another one of the page is left without one, since two elements with a\n * name make the browser skip the transition.\n */\nfunction nameElements(named: Set<HTMLElement>): void {\n const taken = new Set<string>();\n for (const element of owners.keys()) {\n if (element.isConnected) {\n taken.add(element.style.viewTransitionName);\n }\n }\n for (const element of document.querySelectorAll<HTMLElement>(MARKED)) {\n if (named.has(element) || !isVisible(element)) {\n continue;\n }\n if (owners.has(element)) {\n named.add(element);\n owners.set(element, owners.get(element)! + 1);\n continue;\n }\n const name = nameOf(element)?.trimEnd();\n if (name === undefined) {\n continue;\n }\n if (taken.has(name)) {\n if (DEV) {\n console.warn(\n `${describe(element)} has the view transition name \"${name}\", which another element has. It gets none.`,\n );\n }\n continue;\n }\n element.style.viewTransitionName = name;\n if (element.style.viewTransitionName === '') {\n if (DEV) {\n console.warn(\n `${describe(element)} has the view transition name \"${name}\", which is not a CSS identifier. It gets none.`,\n );\n }\n continue;\n }\n taken.add(name);\n const own = element.getAttribute('b-vt');\n if (own) {\n element.style.setProperty('view-transition-class', own);\n }\n named.add(element);\n owners.set(element, 1);\n }\n}\n\n/** Removes the names that a transition set, except those that a newer transition still holds. */\nfunction clearNames(named: Set<HTMLElement>): void {\n for (const element of named) {\n const count = (owners.get(element) ?? 1) - 1;\n if (count > 0) {\n owners.set(element, count);\n continue;\n }\n owners.delete(element);\n element.style.removeProperty('view-transition-name');\n element.style.removeProperty('view-transition-class');\n if (element.getAttribute('style') === '') {\n element.removeAttribute('style');\n }\n }\n named.clear();\n}\n\n/** Starts the transition, with `types` when the browser knows them. */\nfunction begin(update: () => unknown, types: string[]): ViewTransition {\n // Browsers that have transitions without types take only a callback.\n return types.length > 0 &&\n typeof ViewTransition !== 'undefined' &&\n 'types' in ViewTransition.prototype\n ? document.startViewTransition({ update, types })\n : document.startViewTransition(update);\n}\n\n/**\n * Starts a view transition around `update`, with `types` when the browser knows them. A page that\n * marks elements gets them named for the transition, and unnamed when it ends.\n */\nexport function startTransition(update: () => unknown, types: string[]): ViewTransition {\n if (!HAS_VIEW_TRANSITIONS) {\n return begin(update, types);\n }\n const named = new Set<HTMLElement>();\n // The old state has the elements that are in view; the new state, those that the update added.\n nameElements(named);\n async function run(): Promise<unknown> {\n try {\n return await update();\n } finally {\n nameElements(named);\n }\n }\n let started: ViewTransition;\n try {\n started = begin(run, types);\n } catch (error) {\n clearNames(named);\n throw error;\n }\n const clear = (): void => clearNames(named);\n started.finished.then(clear, clear);\n return started;\n}\n"],"mappings":";;AAMA,MAAM,MAAO,YAA4C,KAAK;AAE9D,MAAM,SAAS;;AAGf,MAAM,0BAAU,IAAI,QAAyB;AAC7C,IAAI,UAAU;;AAGd,SAAS,UAAU,SAA2B;CAC5C,MAAM,MAAM,QAAQ,sBAAsB;CAC1C,OACE,IAAI,QAAQ,IAAI,SAAS,KACzB,IAAI,SAAS,KACb,IAAI,QAAQ,KACZ,IAAI,MAAM,eACV,IAAI,OAAO;AAEf;;AAGA,MAAM,2BAAW,IAAI,IAAI;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;;AAGD,MAAM,yBAAS,IAAI,IAAyB;;AAG5C,SAAS,SAAS,SAA0B;CAI1C,OAAO,IAHK,QAAQ,YACT,QAAQ,KAAK,IAAI,QAAQ,OAAO,KAC3B,QAAQ,UAAU,SAAS,IAAI,IAA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SAAS,OAAO;EACd,WAAW,KAAK;EAChB,MAAM;CACR;CACA,MAAM,cAAoB,WAAW,KAAK;CAC1C,QAAQ,SAAS,KAAK,OAAO,KAAK;CAClC,OAAO;AACT"}
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as NavigateOptions } from "./boot-
|
|
1
|
+
import { n as NavigateOptions } from "./boot-ej-9NRT3.js";
|
|
2
2
|
import { Plugin, ViteDevServer } from "vite";
|
|
3
3
|
//#region src/report.d.ts
|
|
4
4
|
/** Sizes in bytes, after gzip. */
|
|
@@ -179,6 +179,13 @@ export interface BrumateOptions {
|
|
|
179
179
|
* of each component. Defaults to true.
|
|
180
180
|
*/
|
|
181
181
|
devtools?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Whether the client build has the spans of `onTrace` of the loader. `'auto'` (the default)
|
|
184
|
+
* turns them on when a script under `src/` imports `brumate/loader` or `brumate/static-loader`
|
|
185
|
+
* and names `onTrace`, and always on the dev server; `true` and `false` apply to the dev server too. Set `true` when the entry that passes
|
|
186
|
+
* `onTrace` is elsewhere, such as in a package, or `false` to leave the code out.
|
|
187
|
+
*/
|
|
188
|
+
trace?: boolean | "auto";
|
|
182
189
|
}
|
|
183
190
|
/** The Vite plugin for `.brm` files. */
|
|
184
191
|
export default function brumate(options?: BrumateOptions): Plugin;
|