@wevu/compiler 6.19.1 → 6.19.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +150 -112
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -1319,9 +1319,10 @@ function createModuleAnalysisFromCode(id, code, options) {
1319
1319
  const cached = moduleAnalysisCache.get(cacheKey);
1320
1320
  if (cached && cached.code === code) return cached.analysis;
1321
1321
  let analysis;
1322
- if (engine === "oxc") if (!code.includes("import") && !code.includes("export")) analysis = createEmptyModuleAnalysis(id, "oxc");
1323
- else analysis = createModuleAnalysisWithOxc(id, code);
1324
- else analysis = createModuleAnalysis(id, parseModuleAnalysisAst(id, code));
1322
+ if (engine === "oxc") {
1323
+ if (!code.includes("import") && !code.includes("export")) analysis = createEmptyModuleAnalysis(id, "oxc");
1324
+ else analysis = createModuleAnalysisWithOxc(id, code);
1325
+ } else analysis = createModuleAnalysis(id, parseModuleAnalysisAst(id, code));
1325
1326
  moduleAnalysisCache.set(cacheKey, {
1326
1327
  code,
1327
1328
  analysis
@@ -3738,25 +3739,35 @@ function rewriteDefaultExport(ast, state, options, enabledPageFeatures, serializ
3738
3739
  transformed = injectPropsDerivedKeys(componentOptionsObject, options?.propsDerivedKeys) || transformed;
3739
3740
  }
3740
3741
  const classStyleBindings = options?.classStyleBindings ?? [];
3741
- if (classStyleBindings.length) if (componentOptionsObject) {
3742
- ensureClassStyleRuntimeImports(ast.program);
3743
- transformed = injectClassStyleComputed(componentOptionsObject, classStyleBindings, options?.propsAliases, warn) || transformed;
3744
- } else warn("无法自动注入 class/style 计算属性:组件选项不是对象字面量。");
3742
+ if (classStyleBindings.length) {
3743
+ if (componentOptionsObject) {
3744
+ ensureClassStyleRuntimeImports(ast.program);
3745
+ transformed = injectClassStyleComputed(componentOptionsObject, classStyleBindings, options?.propsAliases, warn) || transformed;
3746
+ } else warn("无法自动注入 class/style 计算属性:组件选项不是对象字面量。");
3747
+ }
3745
3748
  const templateRefs = options?.templateRefs ?? [];
3746
- if (templateRefs.length) if (componentOptionsObject) transformed = injectTemplateRefs(componentOptionsObject, templateRefs, warn) || transformed;
3747
- else warn("无法自动注入 template ref 元数据:组件选项不是对象字面量。");
3749
+ if (templateRefs.length) {
3750
+ if (componentOptionsObject) transformed = injectTemplateRefs(componentOptionsObject, templateRefs, warn) || transformed;
3751
+ else warn("无法自动注入 template ref 元数据:组件选项不是对象字面量。");
3752
+ }
3748
3753
  const layoutHosts = options?.layoutHosts ?? [];
3749
- if (layoutHosts.length) if (componentOptionsObject) transformed = injectLayoutHosts(componentOptionsObject, layoutHosts, warn) || transformed;
3750
- else warn("无法自动注入 layout host 元数据:组件选项不是对象字面量。");
3754
+ if (layoutHosts.length) {
3755
+ if (componentOptionsObject) transformed = injectLayoutHosts(componentOptionsObject, layoutHosts, warn) || transformed;
3756
+ else warn("无法自动注入 layout host 元数据:组件选项不是对象字面量。");
3757
+ }
3751
3758
  const inlineExpressions = options?.inlineExpressions ?? [];
3752
- if (inlineExpressions.length) if (componentOptionsObject) {
3753
- const injected = injectInlineExpressions(componentOptionsObject, inlineExpressions);
3754
- if (!injected) warn("无法自动注入内联表达式元数据:methods 不是对象字面量。");
3755
- transformed = injected || transformed;
3756
- } else warn("无法自动注入内联表达式元数据:组件选项不是对象字面量。");
3759
+ if (inlineExpressions.length) {
3760
+ if (componentOptionsObject) {
3761
+ const injected = injectInlineExpressions(componentOptionsObject, inlineExpressions);
3762
+ if (!injected) warn("无法自动注入内联表达式元数据:methods 不是对象字面量。");
3763
+ transformed = injected || transformed;
3764
+ } else warn("无法自动注入内联表达式元数据:组件选项不是对象字面量。");
3765
+ }
3757
3766
  const functionPropPaths = options?.functionPropPaths ?? [];
3758
- if (functionPropPaths.length) if (componentOptionsObject) transformed = injectFunctionPropPaths(componentOptionsObject, functionPropPaths) || transformed;
3759
- else warn("无法自动注入函数 prop 元数据:组件选项不是对象字面量。");
3767
+ if (functionPropPaths.length) {
3768
+ if (componentOptionsObject) transformed = injectFunctionPropPaths(componentOptionsObject, functionPropPaths) || transformed;
3769
+ else warn("无法自动注入函数 prop 元数据:组件选项不是对象字面量。");
3770
+ }
3760
3771
  if (componentExpr) {
3761
3772
  if (options?.isApp) transformed = injectWevuDefaultsForApp({
3762
3773
  astProgram: ast.program,
@@ -5319,6 +5330,14 @@ function normalizeLineEndings(source) {
5319
5330
  const mtimeCache = /* @__PURE__ */ new Map();
5320
5331
  const loadCache = new LRUCache({ max: 1024 });
5321
5332
  const pathExistsCache = new LRUCache({ max: 4096 });
5333
+ const transientRenameRetryDelays = [
5334
+ 10,
5335
+ 25,
5336
+ 50
5337
+ ];
5338
+ function isMissingFileError(error) {
5339
+ return error instanceof Error && "code" in error && error.code === "ENOENT";
5340
+ }
5322
5341
  /**
5323
5342
  * 返回 true 的时候需要重新 fs 读取
5324
5343
  * @param id 文件路径
@@ -5363,13 +5382,19 @@ async function readFile(id, options) {
5363
5382
  loadCache.set(id, content);
5364
5383
  return content;
5365
5384
  }
5366
- if (!await isInvalidate(id)) {
5367
- const cached = loadCache.get(id);
5368
- if (cached !== void 0) return cached;
5385
+ for (let attempt = 0;; attempt += 1) try {
5386
+ if (!await isInvalidate(id)) {
5387
+ const cached = loadCache.get(id);
5388
+ if (cached !== void 0) return cached;
5389
+ }
5390
+ const content = normalizeLineEndings(await readFile$1(id, encoding));
5391
+ loadCache.set(id, content);
5392
+ return content;
5393
+ } catch (error) {
5394
+ const retryDelay = transientRenameRetryDelays[attempt];
5395
+ if (!isMissingFileError(error) || retryDelay === void 0) throw error;
5396
+ await new Promise((resolve) => setTimeout(resolve, retryDelay));
5369
5397
  }
5370
- const content = normalizeLineEndings(await readFile$1(id, encoding));
5371
- loadCache.set(id, content);
5372
- return content;
5373
5398
  }
5374
5399
  /**
5375
5400
  * 判断文件或路径是否存在,可选缓存。
@@ -6392,12 +6417,14 @@ function parseForExpression(exp) {
6392
6417
  if (!segments.length || segments.length > 3) return { listExp: split.list };
6393
6418
  const result = { listExp: split.list };
6394
6419
  const rawItem = segments[0]?.trim();
6395
- if (rawItem) if (isIdentifier(rawItem)) result.item = rawItem;
6396
- else {
6397
- const aliases = parseItemAliases(rawItem);
6398
- if (Object.keys(aliases).length) {
6399
- result.item = FOR_ITEM_ALIAS_PLACEHOLDER;
6400
- result.itemAliases = aliases;
6420
+ if (rawItem) {
6421
+ if (isIdentifier(rawItem)) result.item = rawItem;
6422
+ else {
6423
+ const aliases = parseItemAliases(rawItem);
6424
+ if (Object.keys(aliases).length) {
6425
+ result.item = FOR_ITEM_ALIAS_PLACEHOLDER;
6426
+ result.itemAliases = aliases;
6427
+ }
6401
6428
  }
6402
6429
  }
6403
6430
  if (segments.length === 2) {
@@ -7132,13 +7159,14 @@ function normalizeJsExpressionWithContext(exp, context, options) {
7132
7159
  }
7133
7160
  if (locals.has(name)) return;
7134
7161
  let replacement;
7135
- if (context.rewriteScopedSlot) if (hasOwn(slotProps, name)) {
7136
- const prop = slotProps[name];
7137
- const base = createThisMemberAccess(WEVU_SLOT_PROPS_DATA_KEY);
7138
- replacement = createUnrefCall(prop ? createMemberAccess(base, prop) : base);
7139
- } else if (name === WEVU_SLOT_OWNER_KEY || name === WEVU_SLOT_PROPS_DATA_KEY || name === WEVU_SLOT_PROPS_KEY || name === WEVU_SLOT_SCOPE_KEY) replacement = createUnrefCall(createThisMemberAccess(name));
7140
- else replacement = createUnrefCall(createMemberAccess(createThisMemberAccess(WEVU_SLOT_OWNER_PROXY_KEY), name));
7141
- else {
7162
+ if (context.rewriteScopedSlot) {
7163
+ if (hasOwn(slotProps, name)) {
7164
+ const prop = slotProps[name];
7165
+ const base = createThisMemberAccess(WEVU_SLOT_PROPS_DATA_KEY);
7166
+ replacement = createUnrefCall(prop ? createMemberAccess(base, prop) : base);
7167
+ } else if (name === WEVU_SLOT_OWNER_KEY || name === WEVU_SLOT_PROPS_DATA_KEY || name === WEVU_SLOT_PROPS_KEY || name === WEVU_SLOT_SCOPE_KEY) replacement = createUnrefCall(createThisMemberAccess(name));
7168
+ else replacement = createUnrefCall(createMemberAccess(createThisMemberAccess(WEVU_SLOT_OWNER_PROXY_KEY), name));
7169
+ } else {
7142
7170
  const propsAlias = context.propsAliases?.[name];
7143
7171
  replacement = createUnrefCall(propsAlias ? createAliasedPropsAccess(name, propsAlias) : createIdentifierAccessWithPropsFallback(name, context, options?.runtimePropAccess === "helper"));
7144
7172
  }
@@ -7477,11 +7505,12 @@ function transformBindDirective(node, context, forInfo, options) {
7477
7505
  if (!rawExpValue) return null;
7478
7506
  if (options?.isComponent && !COMPONENT_NON_PROP_BINDINGS.has(argValue)) {
7479
7507
  const path = collectFunctionPropPath(rawExpValue);
7480
- if (path) if (shouldWrapStaticMemberFunctionProp(argValue, path, context)) {
7481
- const runtimeAttr = createFunctionPropRuntimeAttr(argValue, rawExpValue, context);
7482
- if (runtimeAttr) return runtimeAttr;
7483
- } else context.functionPropPaths.add(path);
7484
- else if (shouldUseRuntimeFunctionPropBinding(argValue, context) && isComputedMemberExpression(rawExpValue)) {
7508
+ if (path) {
7509
+ if (shouldWrapStaticMemberFunctionProp(argValue, path, context)) {
7510
+ const runtimeAttr = createFunctionPropRuntimeAttr(argValue, rawExpValue, context);
7511
+ if (runtimeAttr) return runtimeAttr;
7512
+ } else context.functionPropPaths.add(path);
7513
+ } else if (shouldUseRuntimeFunctionPropBinding(argValue, context) && isComputedMemberExpression(rawExpValue)) {
7485
7514
  const runtimeAttr = createFunctionPropRuntimeAttr(argValue, rawExpValue, context);
7486
7515
  if (runtimeAttr) return runtimeAttr;
7487
7516
  }
@@ -7880,24 +7909,26 @@ function collectElementAttributes(node, context, options) {
7880
7909
  kind: isComponentElement ? "component" : "element"
7881
7910
  });
7882
7911
  }
7883
- if (layoutHostKey) if (!staticId && hasDynamicIdBinding) context.warnings.push("layout-host 暂不支持与动态 id 同时使用,当前节点已忽略。");
7884
- else {
7885
- const hostIndex = context.layoutHostIndexSeed++;
7886
- const hostId = staticId || `${WEVU_LAYOUT_HOST_ID_PREFIX}${hostIndex}`;
7887
- const hostRefName = `${WEVU_LAYOUT_HOST_REF_PREFIX}${hostIndex}`;
7888
- staticId = hostId;
7889
- context.templateRefs.push({
7890
- selector: `#${hostId}`,
7891
- inFor: false,
7892
- name: hostRefName,
7893
- kind: "component"
7894
- });
7895
- context.layoutHosts.push({
7896
- key: layoutHostKey,
7897
- refName: hostRefName,
7898
- selector: `#${hostId}`,
7899
- kind: "component"
7900
- });
7912
+ if (layoutHostKey) {
7913
+ if (!staticId && hasDynamicIdBinding) context.warnings.push("layout-host 暂不支持与动态 id 同时使用,当前节点已忽略。");
7914
+ else {
7915
+ const hostIndex = context.layoutHostIndexSeed++;
7916
+ const hostId = staticId || `${WEVU_LAYOUT_HOST_ID_PREFIX}${hostIndex}`;
7917
+ const hostRefName = `${WEVU_LAYOUT_HOST_REF_PREFIX}${hostIndex}`;
7918
+ staticId = hostId;
7919
+ context.templateRefs.push({
7920
+ selector: `#${hostId}`,
7921
+ inFor: false,
7922
+ name: hostRefName,
7923
+ kind: "component"
7924
+ });
7925
+ context.layoutHosts.push({
7926
+ key: layoutHostKey,
7927
+ refName: hostRefName,
7928
+ selector: `#${hostId}`,
7929
+ kind: "component"
7930
+ });
7931
+ }
7901
7932
  }
7902
7933
  if (staticId) attrs.unshift(`id="${staticId}"`);
7903
7934
  const classAttr = renderClassAttribute(staticClass, dynamicClassExp, context);
@@ -8617,12 +8648,13 @@ function transformComponentWithSlots(node, context, transformNode, options) {
8617
8648
  if (slotDeclarations.length) context.warnings.push("组件上的 v-slot 与 <template v-slot> 不能同时使用;仅使用组件上的 v-slot。");
8618
8649
  slotDeclarations.length = 0;
8619
8650
  slotDeclarations.push(buildSlotDeclaration(resolveSlotNameFromDirective(slotDirective), slotDirective.exp?.type === NodeTypes.SIMPLE_EXPRESSION ? slotDirective.exp.content : void 0, node.children, context, { wrapper: ownerWrapper }));
8620
- } else if (slotDeclarations.length && defaultSlotChildren.length) if (slotDeclarations.some((decl) => decl.name.type === "default" || decl.name.type === "static" && decl.name.value === "default")) context.warnings.push("存在显式的 v-slot:default,默认插槽内容将被忽略。");
8621
- else {
8622
- implicitDefaultDeclaration = buildSlotDeclaration({ type: "default" }, void 0, defaultSlotChildren, context, { implicitDefault: true });
8623
- slotDeclarations.push(implicitDefaultDeclaration);
8624
- }
8625
- else if (!slotDeclarations.length && defaultSlotChildren.length && !context.scopedSlotsRequireProps && !hasLegacySlotAttribute(defaultSlotChildren)) {
8651
+ } else if (slotDeclarations.length && defaultSlotChildren.length) {
8652
+ if (slotDeclarations.some((decl) => decl.name.type === "default" || decl.name.type === "static" && decl.name.value === "default")) context.warnings.push("存在显式的 v-slot:default,默认插槽内容将被忽略。");
8653
+ else {
8654
+ implicitDefaultDeclaration = buildSlotDeclaration({ type: "default" }, void 0, defaultSlotChildren, context, { implicitDefault: true });
8655
+ slotDeclarations.push(implicitDefaultDeclaration);
8656
+ }
8657
+ } else if (!slotDeclarations.length && defaultSlotChildren.length && !context.scopedSlotsRequireProps && !hasLegacySlotAttribute(defaultSlotChildren)) {
8626
8658
  implicitDefaultDeclaration = buildSlotDeclaration({ type: "default" }, void 0, defaultSlotChildren, context, { implicitDefault: true });
8627
8659
  slotDeclarations.push(implicitDefaultDeclaration);
8628
8660
  }
@@ -8724,10 +8756,12 @@ function transformComponentWithSlotsFallback(node, context, transformNode, optio
8724
8756
  if (slotDeclarations.length) context.warnings.push("组件上的 v-slot 与 <template v-slot> 不能同时使用;仅使用组件上的 v-slot。");
8725
8757
  slotDeclarations.length = 0;
8726
8758
  slotDeclarations.push(buildSlotDeclaration(resolveSlotNameFromDirective(slotDirective), slotDirective.exp?.type === NodeTypes.SIMPLE_EXPRESSION ? slotDirective.exp.content : void 0, node.children, context, { wrapper: ownerWrapper }));
8727
- } else if (slotDeclarations.length && defaultSlotChildren.length) if (slotDeclarations.some((decl) => decl.name.type === "default" || decl.name.type === "static" && decl.name.value === "default")) context.warnings.push("存在显式的 v-slot:default,默认插槽内容将被忽略。");
8728
- else {
8729
- implicitDefaultDeclaration = buildSlotDeclaration({ type: "default" }, void 0, defaultSlotChildren, context);
8730
- slotDeclarations.push(implicitDefaultDeclaration);
8759
+ } else if (slotDeclarations.length && defaultSlotChildren.length) {
8760
+ if (slotDeclarations.some((decl) => decl.name.type === "default" || decl.name.type === "static" && decl.name.value === "default")) context.warnings.push("存在显式的 v-slot:default,默认插槽内容将被忽略。");
8761
+ else {
8762
+ implicitDefaultDeclaration = buildSlotDeclaration({ type: "default" }, void 0, defaultSlotChildren, context);
8763
+ slotDeclarations.push(implicitDefaultDeclaration);
8764
+ }
8731
8765
  }
8732
8766
  if (!slotDeclarations.length) {
8733
8767
  const { attrs, vTextExp } = collectElementAttributes(node, context, {
@@ -10101,18 +10135,59 @@ async function parseVueFile(source, filename, options) {
10101
10135
  merge: (target, source) => mergeJson(target, source, "macro"),
10102
10136
  preambleContent: resolvedDescriptor.script?.content
10103
10137
  });
10104
- if (extracted.stripped !== scriptSetup.content) if (scriptSetup.src) descriptorForCompile = {
10138
+ if (extracted.stripped !== scriptSetup.content) {
10139
+ if (scriptSetup.src) descriptorForCompile = {
10140
+ ...descriptorForCompile,
10141
+ scriptSetup: {
10142
+ ...descriptorForCompile.scriptSetup,
10143
+ content: extracted.stripped
10144
+ }
10145
+ };
10146
+ else {
10147
+ const setupLoc = scriptSetup.loc;
10148
+ const startOffset = setupLoc.start.offset;
10149
+ const endOffset = setupLoc.end.offset;
10150
+ const nextSource = descriptorForCompileSource.slice(0, startOffset) + extracted.stripped + descriptorForCompileSource.slice(endOffset);
10151
+ const { descriptor: nextDescriptor, errors: nextErrors } = await parseSfc(nextSource, filename, false);
10152
+ restoreScriptSetupSrc(nextDescriptor);
10153
+ restoreScriptSrc(nextDescriptor);
10154
+ if (nextErrors.length > 0) {
10155
+ const error = nextErrors[0];
10156
+ throw new Error(`解析 ${filename} 失败:${error.message}`);
10157
+ }
10158
+ assertMatchingSfcScriptLang(nextDescriptor, filename);
10159
+ if (options?.sfcSrc) {
10160
+ const resolvedNext = await resolveSfcBlockSrc(nextDescriptor, filename, options.sfcSrc);
10161
+ descriptorForCompile = resolvedNext.descriptor;
10162
+ if (resolvedNext.deps.length) {
10163
+ sfcSrcDeps = [.../* @__PURE__ */ new Set([...sfcSrcDeps ?? [], ...resolvedNext.deps])];
10164
+ meta.sfcSrcDeps = sfcSrcDeps;
10165
+ }
10166
+ } else descriptorForCompile = nextDescriptor;
10167
+ descriptorForCompileSource = nextSource;
10168
+ }
10169
+ }
10170
+ scriptSetupMacroConfig = extracted.config;
10171
+ scriptSetupMacroHash = extracted.macroHash;
10172
+ }
10173
+ if (DEFINE_OPTIONS_CALL_RE.test(scriptSetup.content)) defineOptionsHash = extractDefineOptionsHash(scriptSetup.content);
10174
+ }
10175
+ const compileScriptSetup = descriptorForCompile.scriptSetup;
10176
+ if (compileScriptSetup?.content && DEFINE_OPTIONS_CALL_RE.test(compileScriptSetup.content)) {
10177
+ const inlined = await inlineScriptSetupDefineOptionsArgs(compileScriptSetup.content, filename, compileScriptSetup.lang);
10178
+ if (inlined.code !== compileScriptSetup.content) {
10179
+ if (compileScriptSetup.src) descriptorForCompile = {
10105
10180
  ...descriptorForCompile,
10106
10181
  scriptSetup: {
10107
- ...descriptorForCompile.scriptSetup,
10108
- content: extracted.stripped
10182
+ ...compileScriptSetup,
10183
+ content: inlined.code
10109
10184
  }
10110
10185
  };
10111
10186
  else {
10112
- const setupLoc = scriptSetup.loc;
10187
+ const setupLoc = compileScriptSetup.loc;
10113
10188
  const startOffset = setupLoc.start.offset;
10114
10189
  const endOffset = setupLoc.end.offset;
10115
- const nextSource = descriptorForCompileSource.slice(0, startOffset) + extracted.stripped + descriptorForCompileSource.slice(endOffset);
10190
+ const nextSource = descriptorForCompileSource.slice(0, startOffset) + inlined.code + descriptorForCompileSource.slice(endOffset);
10116
10191
  const { descriptor: nextDescriptor, errors: nextErrors } = await parseSfc(nextSource, filename, false);
10117
10192
  restoreScriptSetupSrc(nextDescriptor);
10118
10193
  restoreScriptSrc(nextDescriptor);
@@ -10131,43 +10206,6 @@ async function parseVueFile(source, filename, options) {
10131
10206
  } else descriptorForCompile = nextDescriptor;
10132
10207
  descriptorForCompileSource = nextSource;
10133
10208
  }
10134
- scriptSetupMacroConfig = extracted.config;
10135
- scriptSetupMacroHash = extracted.macroHash;
10136
- }
10137
- if (DEFINE_OPTIONS_CALL_RE.test(scriptSetup.content)) defineOptionsHash = extractDefineOptionsHash(scriptSetup.content);
10138
- }
10139
- const compileScriptSetup = descriptorForCompile.scriptSetup;
10140
- if (compileScriptSetup?.content && DEFINE_OPTIONS_CALL_RE.test(compileScriptSetup.content)) {
10141
- const inlined = await inlineScriptSetupDefineOptionsArgs(compileScriptSetup.content, filename, compileScriptSetup.lang);
10142
- if (inlined.code !== compileScriptSetup.content) if (compileScriptSetup.src) descriptorForCompile = {
10143
- ...descriptorForCompile,
10144
- scriptSetup: {
10145
- ...compileScriptSetup,
10146
- content: inlined.code
10147
- }
10148
- };
10149
- else {
10150
- const setupLoc = compileScriptSetup.loc;
10151
- const startOffset = setupLoc.start.offset;
10152
- const endOffset = setupLoc.end.offset;
10153
- const nextSource = descriptorForCompileSource.slice(0, startOffset) + inlined.code + descriptorForCompileSource.slice(endOffset);
10154
- const { descriptor: nextDescriptor, errors: nextErrors } = await parseSfc(nextSource, filename, false);
10155
- restoreScriptSetupSrc(nextDescriptor);
10156
- restoreScriptSrc(nextDescriptor);
10157
- if (nextErrors.length > 0) {
10158
- const error = nextErrors[0];
10159
- throw new Error(`解析 ${filename} 失败:${error.message}`);
10160
- }
10161
- assertMatchingSfcScriptLang(nextDescriptor, filename);
10162
- if (options?.sfcSrc) {
10163
- const resolvedNext = await resolveSfcBlockSrc(nextDescriptor, filename, options.sfcSrc);
10164
- descriptorForCompile = resolvedNext.descriptor;
10165
- if (resolvedNext.deps.length) {
10166
- sfcSrcDeps = [.../* @__PURE__ */ new Set([...sfcSrcDeps ?? [], ...resolvedNext.deps])];
10167
- meta.sfcSrcDeps = sfcSrcDeps;
10168
- }
10169
- } else descriptorForCompile = nextDescriptor;
10170
- descriptorForCompileSource = nextSource;
10171
10209
  }
10172
10210
  }
10173
10211
  const isAppFile = APP_VUE_FILE_RE.test(filename);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/compiler",
3
3
  "type": "module",
4
- "version": "6.19.1",
4
+ "version": "6.19.3",
5
5
  "description": "wevu 编译器基础包,面向小程序模板的编译与转换",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -42,20 +42,20 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@jridgewell/remapping": "^2.3.5",
45
- "@vue/compiler-core": "^3.5.40",
46
- "@vue/compiler-dom": "^3.5.40",
45
+ "@vue/compiler-core": "^3.5.41",
46
+ "@vue/compiler-dom": "^3.5.41",
47
47
  "comment-json": "^5.0.0",
48
48
  "lru-cache": "^11.5.2",
49
49
  "magic-string": "^1.1.0",
50
50
  "merge": "^2.1.1",
51
51
  "pathe": "^2.0.3",
52
- "postcss": "^8.5.25",
53
- "postcss-selector-parser": "^7.1.4",
54
- "vue": "^3.5.40",
55
- "@weapp-core/constants": "0.1.15",
52
+ "postcss": "^8.5.26",
53
+ "postcss-selector-parser": "^7.1.5",
54
+ "vue": "^3.5.41",
55
+ "@weapp-core/constants": "0.1.16",
56
56
  "@weapp-core/shared": "3.1.0",
57
- "@weapp-vite/ast": "6.19.1",
58
- "rolldown-require": "2.0.23"
57
+ "@weapp-vite/ast": "6.19.3",
58
+ "rolldown-require": "2.0.24"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public",