vue 3.5.20 → 3.5.21
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/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +88 -53
- package/dist/vue.esm-browser.prod.js +9 -9
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +88 -53
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +84 -49
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +84 -49
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.21
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
6
|
// @__NO_SIDE_EFFECTS__
|
|
8
7
|
function makeMap(str) {
|
|
9
8
|
const map = /* @__PURE__ */ Object.create(null);
|
|
@@ -61,10 +60,10 @@ const cacheStringFunction = (fn) => {
|
|
|
61
60
|
return hit || (cache[str] = fn(str));
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
|
-
const camelizeRE =
|
|
63
|
+
const camelizeRE = /-\w/g;
|
|
65
64
|
const camelize = cacheStringFunction(
|
|
66
65
|
(str) => {
|
|
67
|
-
return str.replace(camelizeRE, (
|
|
66
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
68
67
|
}
|
|
69
68
|
);
|
|
70
69
|
const hyphenateRE = /\B([A-Z])/g;
|
|
@@ -2227,11 +2226,11 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2227
2226
|
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2228
2227
|
return value;
|
|
2229
2228
|
}
|
|
2230
|
-
seen = seen || /* @__PURE__ */ new
|
|
2231
|
-
if (seen.
|
|
2229
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
2230
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
2232
2231
|
return value;
|
|
2233
2232
|
}
|
|
2234
|
-
seen.
|
|
2233
|
+
seen.set(value, depth);
|
|
2235
2234
|
depth--;
|
|
2236
2235
|
if (isRef(value)) {
|
|
2237
2236
|
traverse(value.value, depth, seen);
|
|
@@ -2693,11 +2692,14 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2693
2692
|
let isHmrUpdating = false;
|
|
2694
2693
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2695
2694
|
{
|
|
2696
|
-
getGlobalThis()
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2695
|
+
const g = getGlobalThis();
|
|
2696
|
+
if (!g.__VUE_HMR_RUNTIME__) {
|
|
2697
|
+
g.__VUE_HMR_RUNTIME__ = {
|
|
2698
|
+
createRecord: tryWrap(createRecord),
|
|
2699
|
+
rerender: tryWrap(rerender),
|
|
2700
|
+
reload: tryWrap(reload)
|
|
2701
|
+
};
|
|
2702
|
+
}
|
|
2701
2703
|
}
|
|
2702
2704
|
const map = /* @__PURE__ */ new Map();
|
|
2703
2705
|
function registerHMR(instance) {
|
|
@@ -2770,10 +2772,12 @@ function reload(id, newComp) {
|
|
|
2770
2772
|
dirtyInstances.delete(instance);
|
|
2771
2773
|
} else if (instance.parent) {
|
|
2772
2774
|
queueJob(() => {
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2775
|
+
if (!(instance.job.flags & 8)) {
|
|
2776
|
+
isHmrUpdating = true;
|
|
2777
|
+
instance.parent.update();
|
|
2778
|
+
isHmrUpdating = false;
|
|
2779
|
+
dirtyInstances.delete(instance);
|
|
2780
|
+
}
|
|
2777
2781
|
});
|
|
2778
2782
|
} else if (instance.appContext.reload) {
|
|
2779
2783
|
instance.appContext.reload();
|
|
@@ -2877,7 +2881,6 @@ const devtoolsComponentRemoved = (component) => {
|
|
|
2877
2881
|
_devtoolsComponentRemoved(component);
|
|
2878
2882
|
}
|
|
2879
2883
|
};
|
|
2880
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2881
2884
|
// @__NO_SIDE_EFFECTS__
|
|
2882
2885
|
function createDevtoolsComponentHook(hook) {
|
|
2883
2886
|
return (component) => {
|
|
@@ -3275,26 +3278,34 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
3275
3278
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3276
3279
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3277
3280
|
}, hydrateChildren) {
|
|
3281
|
+
function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) {
|
|
3282
|
+
vnode2.anchor = hydrateChildren(
|
|
3283
|
+
nextSibling(node2),
|
|
3284
|
+
vnode2,
|
|
3285
|
+
parentNode(node2),
|
|
3286
|
+
parentComponent,
|
|
3287
|
+
parentSuspense,
|
|
3288
|
+
slotScopeIds,
|
|
3289
|
+
optimized
|
|
3290
|
+
);
|
|
3291
|
+
vnode2.targetStart = targetStart;
|
|
3292
|
+
vnode2.targetAnchor = targetAnchor;
|
|
3293
|
+
}
|
|
3278
3294
|
const target = vnode.target = resolveTarget(
|
|
3279
3295
|
vnode.props,
|
|
3280
3296
|
querySelector
|
|
3281
3297
|
);
|
|
3298
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3282
3299
|
if (target) {
|
|
3283
|
-
const disabled = isTeleportDisabled(vnode.props);
|
|
3284
3300
|
const targetNode = target._lpa || target.firstChild;
|
|
3285
3301
|
if (vnode.shapeFlag & 16) {
|
|
3286
3302
|
if (disabled) {
|
|
3287
|
-
|
|
3288
|
-
|
|
3303
|
+
hydrateDisabledTeleport(
|
|
3304
|
+
node,
|
|
3289
3305
|
vnode,
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
parentSuspense,
|
|
3293
|
-
slotScopeIds,
|
|
3294
|
-
optimized
|
|
3306
|
+
targetNode,
|
|
3307
|
+
targetNode && nextSibling(targetNode)
|
|
3295
3308
|
);
|
|
3296
|
-
vnode.targetStart = targetNode;
|
|
3297
|
-
vnode.targetAnchor = targetNode && nextSibling(targetNode);
|
|
3298
3309
|
} else {
|
|
3299
3310
|
vnode.anchor = nextSibling(node);
|
|
3300
3311
|
let targetAnchor = targetNode;
|
|
@@ -3325,6 +3336,10 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3325
3336
|
}
|
|
3326
3337
|
}
|
|
3327
3338
|
updateCssVars(vnode, disabled);
|
|
3339
|
+
} else if (disabled) {
|
|
3340
|
+
if (vnode.shapeFlag & 16) {
|
|
3341
|
+
hydrateDisabledTeleport(node, vnode, node, nextSibling(node));
|
|
3342
|
+
}
|
|
3328
3343
|
}
|
|
3329
3344
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3330
3345
|
}
|
|
@@ -3436,7 +3451,7 @@ const BaseTransitionImpl = {
|
|
|
3436
3451
|
setTransitionHooks(innerChild, enterHooks);
|
|
3437
3452
|
}
|
|
3438
3453
|
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3439
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(
|
|
3454
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3440
3455
|
let leavingHooks = resolveTransitionHooks(
|
|
3441
3456
|
oldInnerChild,
|
|
3442
3457
|
rawProps,
|
|
@@ -3716,7 +3731,6 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3716
3731
|
return ret;
|
|
3717
3732
|
}
|
|
3718
3733
|
|
|
3719
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
3720
3734
|
// @__NO_SIDE_EFFECTS__
|
|
3721
3735
|
function defineComponent(options, extraOptions) {
|
|
3722
3736
|
return isFunction(options) ? (
|
|
@@ -3769,6 +3783,7 @@ function useTemplateRef(key) {
|
|
|
3769
3783
|
return ret;
|
|
3770
3784
|
}
|
|
3771
3785
|
|
|
3786
|
+
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
3772
3787
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
3773
3788
|
if (isArray(rawRef)) {
|
|
3774
3789
|
rawRef.forEach(
|
|
@@ -3818,6 +3833,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3818
3833
|
return !knownTemplateRefs.has(ref2);
|
|
3819
3834
|
};
|
|
3820
3835
|
if (oldRef != null && oldRef !== ref) {
|
|
3836
|
+
invalidatePendingSetRef(oldRawRef);
|
|
3821
3837
|
if (isString(oldRef)) {
|
|
3822
3838
|
refs[oldRef] = null;
|
|
3823
3839
|
if (canSetSetupRef(oldRef)) {
|
|
@@ -3875,9 +3891,15 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3875
3891
|
}
|
|
3876
3892
|
};
|
|
3877
3893
|
if (value) {
|
|
3878
|
-
|
|
3879
|
-
|
|
3894
|
+
const job = () => {
|
|
3895
|
+
doSet();
|
|
3896
|
+
pendingSetRefMap.delete(rawRef);
|
|
3897
|
+
};
|
|
3898
|
+
job.id = -1;
|
|
3899
|
+
pendingSetRefMap.set(rawRef, job);
|
|
3900
|
+
queuePostRenderEffect(job, parentSuspense);
|
|
3880
3901
|
} else {
|
|
3902
|
+
invalidatePendingSetRef(rawRef);
|
|
3881
3903
|
doSet();
|
|
3882
3904
|
}
|
|
3883
3905
|
} else {
|
|
@@ -3885,6 +3907,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3885
3907
|
}
|
|
3886
3908
|
}
|
|
3887
3909
|
}
|
|
3910
|
+
function invalidatePendingSetRef(rawRef) {
|
|
3911
|
+
const pendingSetRef = pendingSetRefMap.get(rawRef);
|
|
3912
|
+
if (pendingSetRef) {
|
|
3913
|
+
pendingSetRef.flags |= 8;
|
|
3914
|
+
pendingSetRefMap.delete(rawRef);
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3888
3917
|
|
|
3889
3918
|
let hasLoggedMismatchError = false;
|
|
3890
3919
|
const logMismatchError = () => {
|
|
@@ -4617,7 +4646,6 @@ function forEachElement(node, cb) {
|
|
|
4617
4646
|
}
|
|
4618
4647
|
|
|
4619
4648
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
4620
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
4621
4649
|
// @__NO_SIDE_EFFECTS__
|
|
4622
4650
|
function defineAsyncComponent(source) {
|
|
4623
4651
|
if (isFunction(source)) {
|
|
@@ -8655,8 +8683,9 @@ function emit(instance, event, ...rawArgs) {
|
|
|
8655
8683
|
);
|
|
8656
8684
|
}
|
|
8657
8685
|
}
|
|
8686
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
8658
8687
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
8659
|
-
const cache = appContext.emitsCache;
|
|
8688
|
+
const cache = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
8660
8689
|
const cached = cache.get(comp);
|
|
8661
8690
|
if (cached !== void 0) {
|
|
8662
8691
|
return cached;
|
|
@@ -9104,7 +9133,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
9104
9133
|
const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
|
|
9105
9134
|
if (pendingBranch) {
|
|
9106
9135
|
suspense.pendingBranch = newBranch;
|
|
9107
|
-
if (isSameVNodeType(
|
|
9136
|
+
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
9108
9137
|
patch(
|
|
9109
9138
|
pendingBranch,
|
|
9110
9139
|
newBranch,
|
|
@@ -9175,7 +9204,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
9175
9204
|
);
|
|
9176
9205
|
setActiveBranch(suspense, newFallback);
|
|
9177
9206
|
}
|
|
9178
|
-
} else if (activeBranch && isSameVNodeType(
|
|
9207
|
+
} else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
9179
9208
|
patch(
|
|
9180
9209
|
activeBranch,
|
|
9181
9210
|
newBranch,
|
|
@@ -9206,7 +9235,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
9206
9235
|
}
|
|
9207
9236
|
}
|
|
9208
9237
|
} else {
|
|
9209
|
-
if (activeBranch && isSameVNodeType(
|
|
9238
|
+
if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
9210
9239
|
patch(
|
|
9211
9240
|
activeBranch,
|
|
9212
9241
|
newBranch,
|
|
@@ -10363,7 +10392,7 @@ function getComponentPublicInstance(instance) {
|
|
|
10363
10392
|
return instance.proxy;
|
|
10364
10393
|
}
|
|
10365
10394
|
}
|
|
10366
|
-
const classifyRE = /(?:^|[-_])
|
|
10395
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
10367
10396
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
10368
10397
|
function getComponentName(Component, includeInferred = true) {
|
|
10369
10398
|
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -10406,15 +10435,23 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
10406
10435
|
};
|
|
10407
10436
|
|
|
10408
10437
|
function h(type, propsOrChildren, children) {
|
|
10438
|
+
const doCreateVNode = (type2, props, children2) => {
|
|
10439
|
+
setBlockTracking(-1);
|
|
10440
|
+
try {
|
|
10441
|
+
return createVNode(type2, props, children2);
|
|
10442
|
+
} finally {
|
|
10443
|
+
setBlockTracking(1);
|
|
10444
|
+
}
|
|
10445
|
+
};
|
|
10409
10446
|
const l = arguments.length;
|
|
10410
10447
|
if (l === 2) {
|
|
10411
10448
|
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
10412
10449
|
if (isVNode(propsOrChildren)) {
|
|
10413
|
-
return
|
|
10450
|
+
return doCreateVNode(type, null, [propsOrChildren]);
|
|
10414
10451
|
}
|
|
10415
|
-
return
|
|
10452
|
+
return doCreateVNode(type, propsOrChildren);
|
|
10416
10453
|
} else {
|
|
10417
|
-
return
|
|
10454
|
+
return doCreateVNode(type, null, propsOrChildren);
|
|
10418
10455
|
}
|
|
10419
10456
|
} else {
|
|
10420
10457
|
if (l > 3) {
|
|
@@ -10422,7 +10459,7 @@ function h(type, propsOrChildren, children) {
|
|
|
10422
10459
|
} else if (l === 3 && isVNode(children)) {
|
|
10423
10460
|
children = [children];
|
|
10424
10461
|
}
|
|
10425
|
-
return
|
|
10462
|
+
return doCreateVNode(type, propsOrChildren, children);
|
|
10426
10463
|
}
|
|
10427
10464
|
}
|
|
10428
10465
|
|
|
@@ -10632,7 +10669,7 @@ function isMemoSame(cached, memo) {
|
|
|
10632
10669
|
return true;
|
|
10633
10670
|
}
|
|
10634
10671
|
|
|
10635
|
-
const version = "3.5.
|
|
10672
|
+
const version = "3.5.21";
|
|
10636
10673
|
const warn = warn$1 ;
|
|
10637
10674
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10638
10675
|
const devtools = devtools$1 ;
|
|
@@ -10991,7 +11028,7 @@ function getTransitionInfo(el, expectedType) {
|
|
|
10991
11028
|
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION$1 : ANIMATION : null;
|
|
10992
11029
|
propCount = type ? type === TRANSITION$1 ? transitionDurations.length : animationDurations.length : 0;
|
|
10993
11030
|
}
|
|
10994
|
-
const hasTransform = type === TRANSITION$1 && /\b(transform|all)(
|
|
11031
|
+
const hasTransform = type === TRANSITION$1 && /\b(?:transform|all)(?:,|$)/.test(
|
|
10995
11032
|
getStyleProperties(`${TRANSITION$1}Property`).toString()
|
|
10996
11033
|
);
|
|
10997
11034
|
return {
|
|
@@ -11152,7 +11189,7 @@ function setVarsOnNode(el, vars) {
|
|
|
11152
11189
|
}
|
|
11153
11190
|
}
|
|
11154
11191
|
|
|
11155
|
-
const displayRE = /(
|
|
11192
|
+
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
11156
11193
|
function patchStyle(el, prev, next) {
|
|
11157
11194
|
const style = el.style;
|
|
11158
11195
|
const isCssString = isString(next);
|
|
@@ -11475,11 +11512,10 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11475
11512
|
}
|
|
11476
11513
|
|
|
11477
11514
|
const REMOVAL = {};
|
|
11478
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
11479
11515
|
// @__NO_SIDE_EFFECTS__
|
|
11480
11516
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
11481
|
-
|
|
11482
|
-
if (isPlainObject(Comp)) extend(Comp, extraOptions);
|
|
11517
|
+
let Comp = defineComponent(options, extraOptions);
|
|
11518
|
+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
11483
11519
|
class VueCustomElement extends VueElement {
|
|
11484
11520
|
constructor(initialProps) {
|
|
11485
11521
|
super(Comp, initialProps, _createApp);
|
|
@@ -11488,7 +11524,6 @@ function defineCustomElement(options, extraOptions, _createApp) {
|
|
|
11488
11524
|
VueCustomElement.def = Comp;
|
|
11489
11525
|
return VueCustomElement;
|
|
11490
11526
|
}
|
|
11491
|
-
|
|
11492
11527
|
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
11493
11528
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
11494
11529
|
});
|
|
@@ -11961,7 +11996,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11961
11996
|
if (e && e.target !== el) {
|
|
11962
11997
|
return;
|
|
11963
11998
|
}
|
|
11964
|
-
if (!e ||
|
|
11999
|
+
if (!e || e.propertyName.endsWith("transform")) {
|
|
11965
12000
|
el.removeEventListener("transitionend", cb);
|
|
11966
12001
|
el[moveCbKey] = null;
|
|
11967
12002
|
removeTransitionClass(el, moveClass);
|
|
@@ -13930,7 +13965,7 @@ const isMemberExpressionBrowser = (exp) => {
|
|
|
13930
13965
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
13931
13966
|
};
|
|
13932
13967
|
const isMemberExpression = isMemberExpressionBrowser ;
|
|
13933
|
-
const fnExpRE = /^\s*(async\s*)?(
|
|
13968
|
+
const fnExpRE = /^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
13934
13969
|
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
13935
13970
|
const isFnExpression = isFnExpressionBrowser ;
|
|
13936
13971
|
function assert(condition, msg) {
|
|
@@ -15972,7 +16007,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
15972
16007
|
}
|
|
15973
16008
|
|
|
15974
16009
|
const transformIf = createStructuralDirectiveTransform(
|
|
15975
|
-
/^(if|else|else-if)$/,
|
|
16010
|
+
/^(?:if|else|else-if)$/,
|
|
15976
16011
|
(node, dir, context) => {
|
|
15977
16012
|
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
|
|
15978
16013
|
const siblings = context.parent.children;
|
|
@@ -16559,7 +16594,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
16559
16594
|
);
|
|
16560
16595
|
} else if (vElse = findDir(
|
|
16561
16596
|
slotElement,
|
|
16562
|
-
/^else(
|
|
16597
|
+
/^else(?:-if)?$/,
|
|
16563
16598
|
true
|
|
16564
16599
|
/* allowEmpty */
|
|
16565
16600
|
)) {
|
|
@@ -16571,7 +16606,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
16571
16606
|
break;
|
|
16572
16607
|
}
|
|
16573
16608
|
}
|
|
16574
|
-
if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) {
|
|
16609
|
+
if (prev && isTemplateNode(prev) && findDir(prev, /^(?:else-)?if$/)) {
|
|
16575
16610
|
let conditional = dynamicSlots[dynamicSlots.length - 1];
|
|
16576
16611
|
while (conditional.alternate.type === 19) {
|
|
16577
16612
|
conditional = conditional.alternate;
|