@vue/compat 3.2.13 → 3.2.17
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 +104 -98
- package/dist/vue.cjs.prod.js +99 -67
- package/dist/vue.esm-browser.js +65 -55
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +141 -65
- package/dist/vue.global.js +64 -54
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +59 -50
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +135 -60
- package/dist/vue.runtime.global.js +58 -49
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -937,8 +937,6 @@ const shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {
|
|
|
937
937
|
get: shallowReadonlyGet
|
|
938
938
|
});
|
|
939
939
|
|
|
940
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
941
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
942
940
|
const toShallow = (value) => value;
|
|
943
941
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
944
942
|
function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
@@ -1327,7 +1325,9 @@ function toRaw(observed) {
|
|
|
1327
1325
|
function markRaw(value) {
|
|
1328
1326
|
def(value, "__v_skip" /* SKIP */, true);
|
|
1329
1327
|
return value;
|
|
1330
|
-
}
|
|
1328
|
+
}
|
|
1329
|
+
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1330
|
+
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1331
1331
|
|
|
1332
1332
|
function trackRefValue(ref) {
|
|
1333
1333
|
if (isTracking()) {
|
|
@@ -1363,7 +1363,6 @@ function triggerRefValue(ref, newVal) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
const convert = (val) => isObject(val) ? reactive(val) : val;
|
|
1367
1366
|
function isRef(r) {
|
|
1368
1367
|
return Boolean(r && r.__v_isRef === true);
|
|
1369
1368
|
}
|
|
@@ -1373,13 +1372,19 @@ function ref(value) {
|
|
|
1373
1372
|
function shallowRef(value) {
|
|
1374
1373
|
return createRef(value, true);
|
|
1375
1374
|
}
|
|
1375
|
+
function createRef(rawValue, shallow) {
|
|
1376
|
+
if (isRef(rawValue)) {
|
|
1377
|
+
return rawValue;
|
|
1378
|
+
}
|
|
1379
|
+
return new RefImpl(rawValue, shallow);
|
|
1380
|
+
}
|
|
1376
1381
|
class RefImpl {
|
|
1377
1382
|
constructor(value, _shallow) {
|
|
1378
1383
|
this._shallow = _shallow;
|
|
1379
1384
|
this.dep = undefined;
|
|
1380
1385
|
this.__v_isRef = true;
|
|
1381
1386
|
this._rawValue = _shallow ? value : toRaw(value);
|
|
1382
|
-
this._value = _shallow ? value :
|
|
1387
|
+
this._value = _shallow ? value : toReactive(value);
|
|
1383
1388
|
}
|
|
1384
1389
|
get value() {
|
|
1385
1390
|
trackRefValue(this);
|
|
@@ -1389,17 +1394,11 @@ class RefImpl {
|
|
|
1389
1394
|
newVal = this._shallow ? newVal : toRaw(newVal);
|
|
1390
1395
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1391
1396
|
this._rawValue = newVal;
|
|
1392
|
-
this._value = this._shallow ? newVal :
|
|
1397
|
+
this._value = this._shallow ? newVal : toReactive(newVal);
|
|
1393
1398
|
triggerRefValue(this, newVal);
|
|
1394
1399
|
}
|
|
1395
1400
|
}
|
|
1396
1401
|
}
|
|
1397
|
-
function createRef(rawValue, shallow) {
|
|
1398
|
-
if (isRef(rawValue)) {
|
|
1399
|
-
return rawValue;
|
|
1400
|
-
}
|
|
1401
|
-
return new RefImpl(rawValue, shallow);
|
|
1402
|
-
}
|
|
1403
1402
|
function triggerRef(ref) {
|
|
1404
1403
|
triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);
|
|
1405
1404
|
}
|
|
@@ -1531,14 +1530,7 @@ const hmrDirtyComponents = new Set();
|
|
|
1531
1530
|
// Note: for a component to be eligible for HMR it also needs the __hmrId option
|
|
1532
1531
|
// to be set so that its instances can be registered / removed.
|
|
1533
1532
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
1534
|
-
|
|
1535
|
-
? global
|
|
1536
|
-
: typeof self !== 'undefined'
|
|
1537
|
-
? self
|
|
1538
|
-
: typeof window !== 'undefined'
|
|
1539
|
-
? window
|
|
1540
|
-
: {};
|
|
1541
|
-
globalObject.__VUE_HMR_RUNTIME__ = {
|
|
1533
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
1542
1534
|
createRecord: tryWrap(createRecord),
|
|
1543
1535
|
rerender: tryWrap(rerender),
|
|
1544
1536
|
reload: tryWrap(reload)
|
|
@@ -1659,14 +1651,32 @@ function tryWrap(fn) {
|
|
|
1659
1651
|
}
|
|
1660
1652
|
|
|
1661
1653
|
let devtools;
|
|
1662
|
-
|
|
1654
|
+
let buffer = [];
|
|
1655
|
+
function emit(event, ...args) {
|
|
1656
|
+
if (devtools) {
|
|
1657
|
+
devtools.emit(event, ...args);
|
|
1658
|
+
}
|
|
1659
|
+
else {
|
|
1660
|
+
buffer.push({ event, args });
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
function setDevtoolsHook(hook, target) {
|
|
1663
1664
|
devtools = hook;
|
|
1665
|
+
if (devtools) {
|
|
1666
|
+
devtools.enabled = true;
|
|
1667
|
+
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
1668
|
+
buffer = [];
|
|
1669
|
+
}
|
|
1670
|
+
else {
|
|
1671
|
+
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
1672
|
+
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
1673
|
+
replay.push((newHook) => {
|
|
1674
|
+
setDevtoolsHook(newHook, target);
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1664
1677
|
}
|
|
1665
1678
|
function devtoolsInitApp(app, version) {
|
|
1666
|
-
|
|
1667
|
-
if (!devtools)
|
|
1668
|
-
return;
|
|
1669
|
-
devtools.emit("app:init" /* APP_INIT */, app, version, {
|
|
1679
|
+
emit("app:init" /* APP_INIT */, app, version, {
|
|
1670
1680
|
Fragment,
|
|
1671
1681
|
Text,
|
|
1672
1682
|
Comment,
|
|
@@ -1674,9 +1684,7 @@ function devtoolsInitApp(app, version) {
|
|
|
1674
1684
|
});
|
|
1675
1685
|
}
|
|
1676
1686
|
function devtoolsUnmountApp(app) {
|
|
1677
|
-
|
|
1678
|
-
return;
|
|
1679
|
-
devtools.emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1687
|
+
emit("app:unmount" /* APP_UNMOUNT */, app);
|
|
1680
1688
|
}
|
|
1681
1689
|
const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
|
|
1682
1690
|
const devtoolsComponentUpdated =
|
|
@@ -1685,24 +1693,18 @@ const devtoolsComponentRemoved =
|
|
|
1685
1693
|
/*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
|
|
1686
1694
|
function createDevtoolsComponentHook(hook) {
|
|
1687
1695
|
return (component) => {
|
|
1688
|
-
|
|
1689
|
-
return;
|
|
1690
|
-
devtools.emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1696
|
+
emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
1691
1697
|
};
|
|
1692
1698
|
}
|
|
1693
1699
|
const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
|
|
1694
1700
|
const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
|
|
1695
1701
|
function createDevtoolsPerformanceHook(hook) {
|
|
1696
1702
|
return (component, type, time) => {
|
|
1697
|
-
|
|
1698
|
-
return;
|
|
1699
|
-
devtools.emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1703
|
+
emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
1700
1704
|
};
|
|
1701
1705
|
}
|
|
1702
1706
|
function devtoolsComponentEmit(component, event, params) {
|
|
1703
|
-
|
|
1704
|
-
return;
|
|
1705
|
-
devtools.emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1707
|
+
emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
1706
1708
|
}
|
|
1707
1709
|
|
|
1708
1710
|
const deprecationData = {
|
|
@@ -2165,7 +2167,7 @@ function off(instance, event, fn) {
|
|
|
2165
2167
|
events[event] = cbs.filter(cb => !(cb === fn || cb.fn === fn));
|
|
2166
2168
|
return vm;
|
|
2167
2169
|
}
|
|
2168
|
-
function emit(instance, event, args) {
|
|
2170
|
+
function emit$1(instance, event, args) {
|
|
2169
2171
|
const cbs = getRegistry(instance)[event];
|
|
2170
2172
|
if (cbs) {
|
|
2171
2173
|
callWithAsyncErrorHandling(cbs.map(cb => cb.bind(instance.proxy)), instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
|
|
@@ -2218,7 +2220,7 @@ function compatModelEmit(instance, event, args) {
|
|
|
2218
2220
|
}
|
|
2219
2221
|
}
|
|
2220
2222
|
|
|
2221
|
-
function emit$
|
|
2223
|
+
function emit$2(instance, event, ...rawArgs) {
|
|
2222
2224
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
2223
2225
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
2224
2226
|
const { emitsOptions, propsOptions: [propsOptions] } = instance;
|
|
@@ -2294,7 +2296,7 @@ function emit$1(instance, event, ...rawArgs) {
|
|
|
2294
2296
|
}
|
|
2295
2297
|
{
|
|
2296
2298
|
compatModelEmit(instance, event, args);
|
|
2297
|
-
return emit(instance, event, args);
|
|
2299
|
+
return emit$1(instance, event, args);
|
|
2298
2300
|
}
|
|
2299
2301
|
}
|
|
2300
2302
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
@@ -3623,7 +3625,7 @@ function defineAsyncComponent(source) {
|
|
|
3623
3625
|
};
|
|
3624
3626
|
// suspense-controlled or SSR.
|
|
3625
3627
|
if ((suspensible && instance.suspense) ||
|
|
3626
|
-
(
|
|
3628
|
+
(isInSSRComponentSetup)) {
|
|
3627
3629
|
return load()
|
|
3628
3630
|
.then(comp => {
|
|
3629
3631
|
return () => createInnerComp(comp, instance);
|
|
@@ -5303,7 +5305,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
5303
5305
|
return vm;
|
|
5304
5306
|
}
|
|
5305
5307
|
}
|
|
5306
|
-
Vue.version = "3.2.
|
|
5308
|
+
Vue.version = "3.2.17";
|
|
5307
5309
|
Vue.config = singletonApp.config;
|
|
5308
5310
|
Vue.use = (p, ...options) => {
|
|
5309
5311
|
if (p && isFunction(p.install)) {
|
|
@@ -6252,20 +6254,22 @@ function isSupported() {
|
|
|
6252
6254
|
* istanbul-ignore-next
|
|
6253
6255
|
*/
|
|
6254
6256
|
function initFeatureFlags() {
|
|
6255
|
-
|
|
6257
|
+
const needWarn = [];
|
|
6256
6258
|
if (typeof __VUE_OPTIONS_API__ !== 'boolean') {
|
|
6257
|
-
|
|
6259
|
+
(process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
6258
6260
|
getGlobalThis().__VUE_OPTIONS_API__ = true;
|
|
6259
6261
|
}
|
|
6260
6262
|
if (typeof __VUE_PROD_DEVTOOLS__ !== 'boolean') {
|
|
6261
|
-
|
|
6263
|
+
(process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
6262
6264
|
getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
|
|
6263
6265
|
}
|
|
6264
|
-
if ((process.env.NODE_ENV !== 'production') && needWarn) {
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
`
|
|
6268
|
-
`
|
|
6266
|
+
if ((process.env.NODE_ENV !== 'production') && needWarn.length) {
|
|
6267
|
+
const multi = needWarn.length > 1;
|
|
6268
|
+
console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +
|
|
6269
|
+
`which expects these compile-time feature flags to be globally injected ` +
|
|
6270
|
+
`via the bundler config in order to get better tree-shaking in the ` +
|
|
6271
|
+
`production bundle.\n\n` +
|
|
6272
|
+
`For more details, see http://link.vuejs.org/feature-flags.`);
|
|
6269
6273
|
}
|
|
6270
6274
|
}
|
|
6271
6275
|
|
|
@@ -6339,10 +6343,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6339
6343
|
{
|
|
6340
6344
|
initFeatureFlags();
|
|
6341
6345
|
}
|
|
6346
|
+
const target = getGlobalThis();
|
|
6347
|
+
target.__VUE__ = true;
|
|
6342
6348
|
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
|
|
6343
|
-
|
|
6344
|
-
target.__VUE__ = true;
|
|
6345
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
|
6349
|
+
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
6346
6350
|
}
|
|
6347
6351
|
const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
|
|
6348
6352
|
// Note: functions inside this closure should use `const xxx = () => {}`
|
|
@@ -9550,7 +9554,7 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
9550
9554
|
instance.ctx = { _: instance };
|
|
9551
9555
|
}
|
|
9552
9556
|
instance.root = parent ? parent.root : instance;
|
|
9553
|
-
instance.emit = emit$
|
|
9557
|
+
instance.emit = emit$2.bind(null, instance);
|
|
9554
9558
|
// apply custom element special handling
|
|
9555
9559
|
if (vnode.ce) {
|
|
9556
9560
|
vnode.ce(instance);
|
|
@@ -9661,7 +9665,12 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
9661
9665
|
function handleSetupResult(instance, setupResult, isSSR) {
|
|
9662
9666
|
if (isFunction(setupResult)) {
|
|
9663
9667
|
// setup returned an inline render function
|
|
9664
|
-
{
|
|
9668
|
+
if (instance.type.__ssrInlineRender) {
|
|
9669
|
+
// when the function's name is `ssrRender` (compiled by SFC inline mode),
|
|
9670
|
+
// set it as ssrRender instead.
|
|
9671
|
+
instance.ssrRender = setupResult;
|
|
9672
|
+
}
|
|
9673
|
+
else {
|
|
9665
9674
|
instance.render = setupResult;
|
|
9666
9675
|
}
|
|
9667
9676
|
}
|
|
@@ -9710,9 +9719,11 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
9710
9719
|
}
|
|
9711
9720
|
}
|
|
9712
9721
|
// template / render function normalization
|
|
9722
|
+
// could be already set when returned from setup()
|
|
9713
9723
|
if (!instance.render) {
|
|
9714
|
-
//
|
|
9715
|
-
|
|
9724
|
+
// only do on-the-fly compile if not in SSR - SSR on-the-fly compliation
|
|
9725
|
+
// is done by server-renderer
|
|
9726
|
+
if (!isSSR && compile && !Component.render) {
|
|
9716
9727
|
const template = (instance.vnode.props &&
|
|
9717
9728
|
instance.vnode.props['inline-template']) ||
|
|
9718
9729
|
Component.template;
|
|
@@ -10422,6 +10433,23 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
10422
10433
|
callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);
|
|
10423
10434
|
};
|
|
10424
10435
|
};
|
|
10436
|
+
// in SSR there is no need to setup an actual effect, and it should be noop
|
|
10437
|
+
// unless it's eager
|
|
10438
|
+
if (isInSSRComponentSetup) {
|
|
10439
|
+
// we will also not call the invalidate callback (+ runner is not set up)
|
|
10440
|
+
onInvalidate = NOOP;
|
|
10441
|
+
if (!cb) {
|
|
10442
|
+
getter();
|
|
10443
|
+
}
|
|
10444
|
+
else if (immediate) {
|
|
10445
|
+
callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
|
|
10446
|
+
getter(),
|
|
10447
|
+
isMultiSource ? [] : undefined,
|
|
10448
|
+
onInvalidate
|
|
10449
|
+
]);
|
|
10450
|
+
}
|
|
10451
|
+
return NOOP;
|
|
10452
|
+
}
|
|
10425
10453
|
let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
|
|
10426
10454
|
const job = () => {
|
|
10427
10455
|
if (!effect.active) {
|
|
@@ -10958,7 +10986,7 @@ function isMemoSame(cached, memo) {
|
|
|
10958
10986
|
}
|
|
10959
10987
|
|
|
10960
10988
|
// Core API ------------------------------------------------------------------
|
|
10961
|
-
const version = "3.2.
|
|
10989
|
+
const version = "3.2.17";
|
|
10962
10990
|
const _ssrUtils = {
|
|
10963
10991
|
createComponentInstance,
|
|
10964
10992
|
setupComponent,
|
|
@@ -12460,6 +12488,31 @@ function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
|
12460
12488
|
}
|
|
12461
12489
|
const fn = modelToUse[hook];
|
|
12462
12490
|
fn && fn(el, binding, vnode, prevVNode);
|
|
12491
|
+
}
|
|
12492
|
+
// SSR vnode transforms, only used when user includes client-oriented render
|
|
12493
|
+
// function in SSR
|
|
12494
|
+
function initVModelForSSR() {
|
|
12495
|
+
vModelText.getSSRProps = ({ value }) => ({ value });
|
|
12496
|
+
vModelRadio.getSSRProps = ({ value }, vnode) => {
|
|
12497
|
+
if (vnode.props && looseEqual(vnode.props.value, value)) {
|
|
12498
|
+
return { checked: true };
|
|
12499
|
+
}
|
|
12500
|
+
};
|
|
12501
|
+
vModelCheckbox.getSSRProps = ({ value }, vnode) => {
|
|
12502
|
+
if (isArray(value)) {
|
|
12503
|
+
if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) {
|
|
12504
|
+
return { checked: true };
|
|
12505
|
+
}
|
|
12506
|
+
}
|
|
12507
|
+
else if (isSet(value)) {
|
|
12508
|
+
if (vnode.props && value.has(vnode.props.value)) {
|
|
12509
|
+
return { checked: true };
|
|
12510
|
+
}
|
|
12511
|
+
}
|
|
12512
|
+
else if (value) {
|
|
12513
|
+
return { checked: true };
|
|
12514
|
+
}
|
|
12515
|
+
};
|
|
12463
12516
|
}
|
|
12464
12517
|
|
|
12465
12518
|
const systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];
|
|
@@ -12588,6 +12641,15 @@ const vShow = {
|
|
|
12588
12641
|
};
|
|
12589
12642
|
function setDisplay(el, value) {
|
|
12590
12643
|
el.style.display = value ? el._vod : 'none';
|
|
12644
|
+
}
|
|
12645
|
+
// SSR vnode transforms, only used when user includes client-oriented render
|
|
12646
|
+
// function in SSR
|
|
12647
|
+
function initVShowForSSR() {
|
|
12648
|
+
vShow.getSSRProps = ({ value }) => {
|
|
12649
|
+
if (!value) {
|
|
12650
|
+
return { style: { display: 'none' } };
|
|
12651
|
+
}
|
|
12652
|
+
};
|
|
12591
12653
|
}
|
|
12592
12654
|
|
|
12593
12655
|
const rendererOptions = extend({ patchProp }, nodeOps);
|
|
@@ -12723,7 +12785,19 @@ function normalizeContainer(container) {
|
|
|
12723
12785
|
warn$1(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
12724
12786
|
}
|
|
12725
12787
|
return container;
|
|
12726
|
-
}
|
|
12788
|
+
}
|
|
12789
|
+
let ssrDirectiveInitialized = false;
|
|
12790
|
+
/**
|
|
12791
|
+
* @internal
|
|
12792
|
+
*/
|
|
12793
|
+
const initDirectivesForSSR = () => {
|
|
12794
|
+
if (!ssrDirectiveInitialized) {
|
|
12795
|
+
ssrDirectiveInitialized = true;
|
|
12796
|
+
initVModelForSSR();
|
|
12797
|
+
initVShowForSSR();
|
|
12798
|
+
}
|
|
12799
|
+
}
|
|
12800
|
+
;
|
|
12727
12801
|
|
|
12728
12802
|
var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
12729
12803
|
__proto__: null,
|
|
@@ -12731,6 +12805,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
12731
12805
|
hydrate: hydrate,
|
|
12732
12806
|
createApp: createApp,
|
|
12733
12807
|
createSSRApp: createSSRApp,
|
|
12808
|
+
initDirectivesForSSR: initDirectivesForSSR,
|
|
12734
12809
|
defineCustomElement: defineCustomElement,
|
|
12735
12810
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12736
12811
|
VueElement: VueElement,
|
|
@@ -12977,7 +13052,7 @@ const errorMessages = {
|
|
|
12977
13052
|
[47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,
|
|
12978
13053
|
[48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
12979
13054
|
[49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`,
|
|
12980
|
-
// just to
|
|
13055
|
+
// just to fulfill types
|
|
12981
13056
|
[50 /* __EXTEND_POINT__ */]: ``
|
|
12982
13057
|
};
|
|
12983
13058
|
|
|
@@ -15017,7 +15092,7 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
15017
15092
|
}
|
|
15018
15093
|
|
|
15019
15094
|
const PURE_ANNOTATION = `/*#__PURE__*/`;
|
|
15020
|
-
function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssr = false, isTS = false, inSSR = false }) {
|
|
15095
|
+
function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {
|
|
15021
15096
|
const context = {
|
|
15022
15097
|
mode,
|
|
15023
15098
|
prefixIdentifiers,
|
|
@@ -15027,6 +15102,7 @@ function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode
|
|
|
15027
15102
|
optimizeImports,
|
|
15028
15103
|
runtimeGlobalName,
|
|
15029
15104
|
runtimeModuleName,
|
|
15105
|
+
ssrRuntimeModuleName,
|
|
15030
15106
|
ssr,
|
|
15031
15107
|
isTS,
|
|
15032
15108
|
inSSR,
|
|
@@ -15152,7 +15228,7 @@ function generate(ast, options = {}) {
|
|
|
15152
15228
|
};
|
|
15153
15229
|
}
|
|
15154
15230
|
function genFunctionPreamble(ast, context) {
|
|
15155
|
-
const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName } = context;
|
|
15231
|
+
const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;
|
|
15156
15232
|
const VueBinding = runtimeGlobalName;
|
|
15157
15233
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
15158
15234
|
// Generate const declaration for helpers
|
|
@@ -17239,9 +17315,9 @@ const transformModel = (dir, node, context) => {
|
|
|
17239
17315
|
const eventArg = context.isTS ? `($event: any)` : `$event`;
|
|
17240
17316
|
{
|
|
17241
17317
|
assignmentExp = createCompoundExpression([
|
|
17242
|
-
`${eventArg} => (`,
|
|
17318
|
+
`${eventArg} => ((`,
|
|
17243
17319
|
exp,
|
|
17244
|
-
` = $event)`
|
|
17320
|
+
`) = $event)`
|
|
17245
17321
|
]);
|
|
17246
17322
|
}
|
|
17247
17323
|
const props = [
|
|
@@ -18037,4 +18113,4 @@ Vue.compile = compileToFunction;
|
|
|
18037
18113
|
const { configureCompat: configureCompat$1 } = Vue;
|
|
18038
18114
|
|
|
18039
18115
|
export default Vue;
|
|
18040
|
-
export { BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat$1 as configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter$1 as resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
18116
|
+
export { BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat$1 as configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter$1 as resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|