@vitejs/devtools 0.0.0-alpha.30 → 0.0.0-alpha.32

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/config.js ADDED
@@ -0,0 +1,20 @@
1
+ //#region src/node/utils.ts
2
+ function isObject(value) {
3
+ return Object.prototype.toString.call(value) === "[object Object]";
4
+ }
5
+
6
+ //#endregion
7
+ //#region src/node/config.ts
8
+ function normalizeDevToolsConfig(config, host) {
9
+ return {
10
+ enabled: config === true || !!(config && config.enabled),
11
+ config: {
12
+ ...isObject(config) ? config : {},
13
+ clientAuth: isObject(config) ? config.clientAuth ?? true : true,
14
+ host: isObject(config) ? config.host ?? host : host
15
+ }
16
+ };
17
+ }
18
+
19
+ //#endregion
20
+ export { normalizeDevToolsConfig };
@@ -1,6 +1,6 @@
1
- import { B as toRef$1, F as onScopeDispose, H as toValue, L as readonly, M as customRef, N as getCurrentScope, O as watch, R as ref, S as onMounted, U as unref, _ as getCurrentInstance, b as inject, k as watchEffect, s as computed, x as nextTick, y as hasInjectionContext, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
1
+ import { B as toRef$1, F as onScopeDispose, H as toValue, L as readonly, M as customRef, N as getCurrentScope, O as watch, R as ref, S as onMounted, U as unref, _ as getCurrentInstance, b as inject, k as watchEffect, s as computed, x as nextTick, y as hasInjectionContext, z as shallowRef } from "./vue.runtime.esm-bundler-CHmRsJSH.js";
2
2
 
3
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
3
+ //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
4
4
  /**
5
5
  * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
6
6
  *
@@ -226,7 +226,7 @@ function watchImmediate(source, cb, options) {
226
226
  }
227
227
 
228
228
  //#endregion
229
- //#region ../../node_modules/.pnpm/@vueuse+core@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
229
+ //#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
230
230
  const defaultWindow = isClient ? window : void 0;
231
231
  const defaultDocument = isClient ? window.document : void 0;
232
232
  const defaultNavigator = isClient ? window.navigator : void 0;
@@ -1,4 +1,4 @@
1
- import { I as reactive, O as watch, P as markRaw, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
1
+ import { I as reactive, O as watch, P as markRaw, z as shallowRef } from "./vue.runtime.esm-bundler-CHmRsJSH.js";
2
2
  import { createEventEmitter } from "@vitejs/devtools-kit/utils/events";
3
3
 
4
4
  //#region src/client/webcomponents/constants.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { StartOptions } from "./cli-commands.js";
2
1
  import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
3
2
  import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state";
4
3
  import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
@@ -9,28 +8,6 @@ import * as h3 from "h3";
9
8
  import { AsyncLocalStorage } from "node:async_hooks";
10
9
  import * as birpc from "birpc";
11
10
 
12
- //#region src/node/config.d.ts
13
- interface DevToolsConfig extends Partial<StartOptions> {
14
- enabled: boolean;
15
- /**
16
- * Disable client authentication.
17
- *
18
- * Beware that if you disable client authentication,
19
- * any browsers can connect to the devtools and access to your server and filesystem.
20
- * (including other devices, if you open server `host` option to LAN or WAN)
21
- *
22
- * @default true
23
- */
24
- clientAuth?: boolean;
25
- }
26
- interface ResolvedDevToolsConfig {
27
- config: Omit<DevToolsConfig, 'enabled'> & {
28
- host: string;
29
- };
30
- enabled: boolean;
31
- }
32
- declare function normalizeDevToolsConfig(config: DevToolsConfig | boolean | undefined, host: string): ResolvedDevToolsConfig;
33
- //#endregion
34
11
  //#region src/node/context.d.ts
35
12
  declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
36
13
  //#endregion
@@ -245,4 +222,4 @@ declare function createDevToolsMiddleware(options: CreateWsServerOptions): Promi
245
222
  getConnectionMeta: () => Promise<_vitejs_devtools_kit0.ConnectionMeta>;
246
223
  }>;
247
224
  //#endregion
248
- export { DevTools, DevToolsConfig, ResolvedDevToolsConfig, createDevToolsContext, createDevToolsMiddleware, normalizeDevToolsConfig };
225
+ export { DevTools, createDevToolsContext, createDevToolsMiddleware };
package/dist/index.js CHANGED
@@ -1,22 +1,3 @@
1
- import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-BbzqUdpu.js";
1
+ import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-CM-4geJK.js";
2
2
 
3
- //#region src/node/utils.ts
4
- function isObject(value) {
5
- return Object.prototype.toString.call(value) === "[object Object]";
6
- }
7
-
8
- //#endregion
9
- //#region src/node/config.ts
10
- function normalizeDevToolsConfig(config, host) {
11
- return {
12
- enabled: config === true || !!(config && config.enabled),
13
- config: {
14
- ...isObject(config) ? config : {},
15
- clientAuth: isObject(config) ? config.clientAuth ?? true : true,
16
- host: isObject(config) ? config.host ?? host : host
17
- }
18
- };
19
- }
20
-
21
- //#endregion
22
- export { DevTools, createDevToolsContext, createDevToolsMiddleware, normalizeDevToolsConfig };
3
+ export { DevTools, createDevToolsContext, createDevToolsMiddleware };
@@ -2889,14 +2889,16 @@ async function createWsServer(options) {
2889
2889
  random: true
2890
2890
  });
2891
2891
  const host = options.hostWebSocket ?? "localhost";
2892
+ const https = options.context.viteConfig.server.https;
2892
2893
  const wsClients = /* @__PURE__ */ new Set();
2893
2894
  const context = options.context;
2894
2895
  const contextInternal = getInternalContext(context);
2895
- const isClientAuthDisabled = context.mode === "build" || context.viteConfig.devtools?.clientAuth === false || process$1.env.VITE_DEVTOOLS_DISABLE_CLIENT_AUTH === "true";
2896
+ const isClientAuthDisabled = context.mode === "build" || context.viteConfig.devtools?.config?.clientAuth === false || process$1.env.VITE_DEVTOOLS_DISABLE_CLIENT_AUTH === "true";
2896
2897
  if (isClientAuthDisabled) console.warn("[Vite DevTools] Client authentication is disabled. Any browser can connect to the devtools and access to your server and filesystem.");
2897
2898
  const preset = createWsRpcPreset({
2898
2899
  port,
2899
2900
  host,
2901
+ https,
2900
2902
  onConnected: (ws, req, meta) => {
2901
2903
  const authId = new URL(req.url ?? "", "http://localhost").searchParams.get("vite_devtools_auth_id") ?? void 0;
2902
2904
  if (isClientAuthDisabled) meta.isTrusted = true;
@@ -1,4 +1,4 @@
1
- import { a as createDevToolsContext, t as DevTools } from "./plugins-BbzqUdpu.js";
1
+ import { a as createDevToolsContext, t as DevTools } from "./plugins-CM-4geJK.js";
2
2
  import { resolveConfig } from "vite";
3
3
  import process from "node:process";
4
4
 
@@ -1,6 +1,6 @@
1
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.js
1
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.28/node_modules/@vue/shared/dist/shared.esm-bundler.js
2
2
  /**
3
- * @vue/shared v3.5.27
3
+ * @vue/shared v3.5.28
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
5
  * @license MIT
6
6
  **/
@@ -26,6 +26,7 @@ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
26
26
  const isArray = Array.isArray;
27
27
  const isMap = (val) => toTypeString(val) === "[object Map]";
28
28
  const isSet = (val) => toTypeString(val) === "[object Set]";
29
+ const isDate = (val) => toTypeString(val) === "[object Date]";
29
30
  const isFunction = (val) => typeof val === "function";
30
31
  const isString = (val) => typeof val === "string";
31
32
  const isSymbol = (val) => typeof val === "symbol";
@@ -132,6 +133,36 @@ const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,auto
132
133
  function includeBooleanAttr(value) {
133
134
  return !!value || value === "";
134
135
  }
136
+ function looseCompareArrays(a, b) {
137
+ if (a.length !== b.length) return false;
138
+ let equal = true;
139
+ for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
140
+ return equal;
141
+ }
142
+ function looseEqual(a, b) {
143
+ if (a === b) return true;
144
+ let aValidType = isDate(a);
145
+ let bValidType = isDate(b);
146
+ if (aValidType || bValidType) return aValidType && bValidType ? a.getTime() === b.getTime() : false;
147
+ aValidType = isSymbol(a);
148
+ bValidType = isSymbol(b);
149
+ if (aValidType || bValidType) return a === b;
150
+ aValidType = isArray(a);
151
+ bValidType = isArray(b);
152
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareArrays(a, b) : false;
153
+ aValidType = isObject(a);
154
+ bValidType = isObject(b);
155
+ if (aValidType || bValidType) {
156
+ if (!aValidType || !bValidType) return false;
157
+ if (Object.keys(a).length !== Object.keys(b).length) return false;
158
+ for (const key in a) {
159
+ const aHasKey = a.hasOwnProperty(key);
160
+ const bHasKey = b.hasOwnProperty(key);
161
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) return false;
162
+ }
163
+ }
164
+ return String(a) === String(b);
165
+ }
135
166
  const isRef$1 = (val) => {
136
167
  return !!(val && val["__v_isRef"] === true);
137
168
  };
@@ -155,9 +186,9 @@ const stringifySymbol = (v, i = "") => {
155
186
  };
156
187
 
157
188
  //#endregion
158
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.27/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
189
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.28/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
159
190
  /**
160
- * @vue/reactivity v3.5.27
191
+ * @vue/reactivity v3.5.28
161
192
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
162
193
  * @license MIT
163
194
  **/
@@ -185,6 +216,7 @@ var EffectScope = class {
185
216
  */
186
217
  this.cleanups = [];
187
218
  this._isPaused = false;
219
+ this.__v_skip = true;
188
220
  this.parent = activeEffectScope;
189
221
  if (!detached && activeEffectScope) this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
190
222
  }
@@ -1582,9 +1614,9 @@ function traverse(value, depth = Infinity, seen) {
1582
1614
  }
1583
1615
 
1584
1616
  //#endregion
1585
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.27/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1617
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.28/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1586
1618
  /**
1587
- * @vue/runtime-core v3.5.27
1619
+ * @vue/runtime-core v3.5.28
1588
1620
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1589
1621
  * @license MIT
1590
1622
  **/
@@ -2286,8 +2318,7 @@ function useTemplateRef(key) {
2286
2318
  const r = shallowRef(null);
2287
2319
  if (i) {
2288
2320
  const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
2289
- let desc;
2290
- if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) warn$1(`useTemplateRef('${key}') already exists.`);
2321
+ if (!!(process.env.NODE_ENV !== "production") && isTemplateRefKey(refs, key)) warn$1(`useTemplateRef('${key}') already exists.`);
2291
2322
  else Object.defineProperty(refs, key, {
2292
2323
  enumerable: true,
2293
2324
  get: () => r.value,
@@ -2298,6 +2329,10 @@ function useTemplateRef(key) {
2298
2329
  if (!!(process.env.NODE_ENV !== "production")) knownTemplateRefs.add(ret);
2299
2330
  return ret;
2300
2331
  }
2332
+ function isTemplateRefKey(refs, key) {
2333
+ let desc;
2334
+ return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
2335
+ }
2301
2336
  const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
2302
2337
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2303
2338
  if (isArray(rawRef)) {
@@ -2324,10 +2359,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2324
2359
  if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) warn$1(`Template ref "${key}" used on a non-ref value. It will not work in the production build.`);
2325
2360
  if (knownTemplateRefs.has(rawSetupState[key])) return false;
2326
2361
  }
2362
+ if (isTemplateRefKey(refs, key)) return false;
2327
2363
  return hasOwn(rawSetupState, key);
2328
2364
  };
2329
- const canSetRef = (ref2) => {
2330
- return !!!(process.env.NODE_ENV !== "production") || !knownTemplateRefs.has(ref2);
2365
+ const canSetRef = (ref2, key) => {
2366
+ if (!!(process.env.NODE_ENV !== "production") && knownTemplateRefs.has(ref2)) return false;
2367
+ if (key && isTemplateRefKey(refs, key)) return false;
2368
+ return true;
2331
2369
  };
2332
2370
  if (oldRef != null && oldRef !== ref) {
2333
2371
  invalidatePendingSetRef(oldRawRef);
@@ -2335,8 +2373,8 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2335
2373
  refs[oldRef] = null;
2336
2374
  if (canSetSetupRef(oldRef)) setupState[oldRef] = null;
2337
2375
  } else if (isRef(oldRef)) {
2338
- if (canSetRef(oldRef)) oldRef.value = null;
2339
2376
  const oldRawRefAtom = oldRawRef;
2377
+ if (canSetRef(oldRef, oldRawRefAtom.k)) oldRef.value = null;
2340
2378
  if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
2341
2379
  }
2342
2380
  }
@@ -2354,7 +2392,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2354
2392
  if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
2355
2393
  } else {
2356
2394
  const newVal = [refValue];
2357
- if (canSetRef(ref)) ref.value = newVal;
2395
+ if (canSetRef(ref, rawRef.k)) ref.value = newVal;
2358
2396
  if (rawRef.k) refs[rawRef.k] = newVal;
2359
2397
  }
2360
2398
  else if (!existing.includes(refValue)) existing.push(refValue);
@@ -2362,7 +2400,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2362
2400
  refs[ref] = value;
2363
2401
  if (canSetSetupRef(ref)) setupState[ref] = value;
2364
2402
  } else if (_isRef) {
2365
- if (canSetRef(ref)) ref.value = value;
2403
+ if (canSetRef(ref, rawRef.k)) ref.value = value;
2366
2404
  if (rawRef.k) refs[rawRef.k] = value;
2367
2405
  } else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
2368
2406
  };
@@ -3387,7 +3425,7 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
3387
3425
  const dynamicProps = nextVNode.dynamicProps;
3388
3426
  for (let i = 0; i < dynamicProps.length; i++) {
3389
3427
  const key = dynamicProps[i];
3390
- if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) return true;
3428
+ if (hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emits, key)) return true;
3391
3429
  }
3392
3430
  }
3393
3431
  } else {
@@ -3406,10 +3444,16 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
3406
3444
  if (nextKeys.length !== Object.keys(prevProps).length) return true;
3407
3445
  for (let i = 0; i < nextKeys.length; i++) {
3408
3446
  const key = nextKeys[i];
3409
- if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) return true;
3447
+ if (hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emitsOptions, key)) return true;
3410
3448
  }
3411
3449
  return false;
3412
3450
  }
3451
+ function hasPropValueChanged(nextProps, prevProps, key) {
3452
+ const nextProp = nextProps[key];
3453
+ const prevProp = prevProps[key];
3454
+ if (key === "style" && isObject(nextProp) && isObject(prevProp)) return !looseEqual(nextProp, prevProp);
3455
+ return nextProp !== prevProp;
3456
+ }
3413
3457
  function updateHOCHostEl({ vnode, parent }, el) {
3414
3458
  while (parent) {
3415
3459
  const root = parent.subTree;
@@ -3844,13 +3888,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3844
3888
  if (n1 == null) hostInsert(n2.el = hostCreateText(n2.children), container, anchor);
3845
3889
  else {
3846
3890
  const el = n2.el = n1.el;
3847
- if (n2.children !== n1.children) if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
3848
- const childNodes = container.childNodes;
3849
- const newChild = hostCreateText(n2.children);
3850
- const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
3851
- hostInsert(newChild, container, oldChild);
3852
- hostRemove(oldChild);
3853
- } else hostSetText(el, n2.children);
3891
+ if (n2.children !== n1.children) hostSetText(el, n2.children);
3854
3892
  }
3855
3893
  };
3856
3894
  const processCommentNode = (n1, n2, container, anchor) => {
@@ -3893,7 +3931,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3893
3931
  else if (n2.type === "math") namespace = "mathml";
3894
3932
  if (n1 == null) mountElement(n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
3895
3933
  else {
3896
- const customElement = !!(n1.el && n1.el._isVueCE) ? n1.el : null;
3934
+ const customElement = n1.el && n1.el._isVueCE ? n1.el : null;
3897
3935
  try {
3898
3936
  if (customElement) customElement._beginPatch();
3899
3937
  patchElement(n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
@@ -4104,7 +4142,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4104
4142
  if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
4105
4143
  else hydrateSubTree();
4106
4144
  } else {
4107
- if (root.ce && root.ce._def.shadowRoot !== false) root.ce._injectChildStyle(type);
4145
+ if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
4108
4146
  if (!!(process.env.NODE_ENV !== "production")) startMeasure(instance, `render`);
4109
4147
  const subTree = instance.subTree = renderComponentRoot(instance);
4110
4148
  if (!!(process.env.NODE_ENV !== "production")) endMeasure(instance, `render`);
@@ -4132,7 +4170,9 @@ function baseCreateRenderer(options, createHydrationFns) {
4132
4170
  updateComponentPreRender(instance, next, optimized);
4133
4171
  }
4134
4172
  nonHydratedAsyncRoot.asyncDep.then(() => {
4135
- if (!instance.isUnmounted) componentUpdateFn();
4173
+ queuePostRenderEffect(() => {
4174
+ if (!instance.isUnmounted) update();
4175
+ }, parentSuspense);
4136
4176
  });
4137
4177
  return;
4138
4178
  }
@@ -4520,8 +4560,10 @@ function traverseStaticChildren(n1, n2, shallow = false) {
4520
4560
  }
4521
4561
  if (!shallow && c2.patchFlag !== -2) traverseStaticChildren(c1, c2);
4522
4562
  }
4523
- if (c2.type === Text) if (c2.patchFlag !== -1) c2.el = c1.el;
4524
- else c2.__elIndex = i + (n1.type === Fragment ? 1 : 0);
4563
+ if (c2.type === Text) {
4564
+ if (c2.patchFlag === -1) c2 = ch2[i] = cloneIfMounted(c2);
4565
+ c2.el = c1.el;
4566
+ }
4525
4567
  if (c2.type === Comment && !c2.el) c2.el = c1.el;
4526
4568
  if (!!(process.env.NODE_ENV !== "production")) c2.el && (c2.el.__vnode = c2);
4527
4569
  }
@@ -5613,15 +5655,15 @@ function initCustomFormatter() {
5613
5655
  if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
5614
5656
  else window.devtoolsFormatters = [formatter];
5615
5657
  }
5616
- const version = "3.5.27";
5658
+ const version = "3.5.28";
5617
5659
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
5618
5660
  const devtools = (process.env.NODE_ENV, devtools$1);
5619
5661
  const setDevtoolsHook = (process.env.NODE_ENV, setDevtoolsHook$1);
5620
5662
 
5621
5663
  //#endregion
5622
- //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.27/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
5664
+ //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.28/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
5623
5665
  /**
5624
- * @vue/runtime-dom v3.5.27
5666
+ * @vue/runtime-dom v3.5.28
5625
5667
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5626
5668
  * @license MIT
5627
5669
  **/
@@ -6244,6 +6286,12 @@ var VueElement = class VueElement extends BaseClass {
6244
6286
  /**
6245
6287
  * @internal
6246
6288
  */
6289
+ _hasShadowRoot() {
6290
+ return this._def.shadowRoot !== false;
6291
+ }
6292
+ /**
6293
+ * @internal
6294
+ */
6247
6295
  _removeChildStyle(comp) {
6248
6296
  if (!!(process.env.NODE_ENV !== "production")) {
6249
6297
  this._styleChildren.delete(comp);
@@ -6277,6 +6325,7 @@ const modifierGuards = {
6277
6325
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
6278
6326
  };
6279
6327
  const withModifiers = (fn, modifiers) => {
6328
+ if (!fn) return fn;
6280
6329
  const cache = fn._withMods || (fn._withMods = {});
6281
6330
  const cacheKey = modifiers.join(".");
6282
6331
  return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
@@ -6383,9 +6432,9 @@ function normalizeContainer(container) {
6383
6432
  }
6384
6433
 
6385
6434
  //#endregion
6386
- //#region ../../node_modules/.pnpm/vue@3.5.27_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
6435
+ //#region ../../node_modules/.pnpm/vue@3.5.28_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
6387
6436
  /**
6388
- * vue v3.5.27
6437
+ * vue v3.5.28
6389
6438
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6390
6439
  * @license MIT
6391
6440
  **/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/devtools",
3
3
  "type": "module",
4
- "version": "0.0.0-alpha.30",
4
+ "version": "0.0.0-alpha.32",
5
5
  "description": "Vite DevTools",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -25,6 +25,7 @@
25
25
  "./cli-commands": "./dist/cli-commands.js",
26
26
  "./client/inject": "./dist/client/inject.js",
27
27
  "./client/webcomponents": "./dist/client/webcomponents.js",
28
+ "./config": "./dist/config.js",
28
29
  "./dirs": "./dist/dirs.js",
29
30
  "./package.json": "./package.json"
30
31
  },
@@ -43,7 +44,7 @@
43
44
  "birpc": "^4.0.0",
44
45
  "cac": "^6.7.14",
45
46
  "h3": "^1.15.5",
46
- "immer": "^11.1.3",
47
+ "immer": "^11.1.4",
47
48
  "launch-editor": "^2.12.0",
48
49
  "mlly": "^1.8.0",
49
50
  "obug": "^2.1.1",
@@ -53,9 +54,9 @@
53
54
  "sirv": "^3.0.2",
54
55
  "tinyexec": "^1.0.2",
55
56
  "ws": "^8.19.0",
56
- "@vitejs/devtools-kit": "0.0.0-alpha.30",
57
- "@vitejs/devtools-rolldown": "0.0.0-alpha.30",
58
- "@vitejs/devtools-rpc": "0.0.0-alpha.30"
57
+ "@vitejs/devtools-kit": "0.0.0-alpha.32",
58
+ "@vitejs/devtools-rpc": "0.0.0-alpha.32",
59
+ "@vitejs/devtools-rolldown": "0.0.0-alpha.32"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@clack/prompts": "^1.0.0",
@@ -63,15 +64,15 @@
63
64
  "@xterm/addon-fit": "^0.11.0",
64
65
  "@xterm/xterm": "^6.0.0",
65
66
  "dompurify": "^3.3.1",
66
- "tsdown": "^0.20.2",
67
+ "tsdown": "^0.20.3",
67
68
  "typescript": "^5.9.3",
68
69
  "unplugin-vue": "^7.1.1",
69
70
  "unplugin-vue-router": "^0.19.2",
70
- "vite": "^8.0.0-beta.13",
71
- "vue": "^3.5.27",
71
+ "vite": "^8.0.0-beta.14",
72
+ "vue": "^3.5.28",
72
73
  "vue-router": "^5.0.2",
73
74
  "vue-tsc": "^3.2.4",
74
- "@vitejs/devtools-rolldown": "0.0.0-alpha.30"
75
+ "@vitejs/devtools-rolldown": "0.0.0-alpha.32"
75
76
  },
76
77
  "scripts": {
77
78
  "build": "pnpm build:js && pnpm build:standalone",
@@ -1 +0,0 @@
1
- import{c as e,m as t,n}from"./index-DWC0UjCz.js";var r={};function i(n,r){return t(),e(`div`,null,` Logs // TODO: `)}var a=n(r,[[`render`,i]]);export{a as default};