🔧 npm update

This commit is contained in:
2025-04-15 20:50:11 +02:00
parent ce5b9ac0c8
commit 94a90edabd
828 changed files with 256807 additions and 197099 deletions

View File

@@ -1,5 +1,5 @@
/**
* vue v3.4.15
* vue v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -7,7 +7,7 @@ import * as runtimeDom from '@vue/runtime-dom';
import { initCustomFormatter, registerRuntimeCompiler, warn } from '@vue/runtime-dom';
export * from '@vue/runtime-dom';
import { compile } from '@vue/compiler-dom';
import { isString, NOOP, extend, generateCodeFrame, EMPTY_OBJ } from '@vue/shared';
import { isString, NOOP, genCacheKey, extend, generateCodeFrame } from '@vue/shared';
function initDev() {
{
@@ -18,15 +18,7 @@ function initDev() {
if (!!(process.env.NODE_ENV !== "production")) {
initDev();
}
const compileCache = /* @__PURE__ */ new WeakMap();
function getCache(options) {
let c = compileCache.get(options != null ? options : EMPTY_OBJ);
if (!c) {
c = /* @__PURE__ */ Object.create(null);
compileCache.set(options != null ? options : EMPTY_OBJ, c);
}
return c;
}
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {
if (!isString(template)) {
if (template.nodeType) {
@@ -36,9 +28,8 @@ function compileToFunction(template, options) {
return NOOP;
}
}
const key = template;
const cache = getCache(options);
const cached = cache[key];
const key = genCacheKey(template, options);
const cached = compileCache[key];
if (cached) {
return cached;
}
@@ -73,7 +64,7 @@ ${codeFrame}` : message);
}
const render = new Function("Vue", code)(runtimeDom);
render._rc = true;
return cache[key] = render;
return compileCache[key] = render;
}
registerRuntimeCompiler(compileToFunction);