@vue/compiler-sfc 3.4.0-beta.4 → 3.4.0-rc.2

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.
@@ -17767,21 +17767,24 @@ class TypeScope {
17767
17767
  this.imports = imports;
17768
17768
  this.types = types;
17769
17769
  this.declares = declares;
17770
+ this.isGenericScope = false;
17770
17771
  this.resolvedImportSources = /* @__PURE__ */ Object.create(null);
17771
17772
  this.exportedTypes = /* @__PURE__ */ Object.create(null);
17772
17773
  this.exportedDeclares = /* @__PURE__ */ Object.create(null);
17773
17774
  }
17774
17775
  }
17775
17776
  function resolveTypeElements(ctx, node, scope, typeParameters) {
17776
- if (node._resolvedElements) {
17777
+ const canCache = !typeParameters;
17778
+ if (canCache && node._resolvedElements) {
17777
17779
  return node._resolvedElements;
17778
17780
  }
17779
- return node._resolvedElements = innerResolveTypeElements(
17781
+ const resolved = innerResolveTypeElements(
17780
17782
  ctx,
17781
17783
  node,
17782
17784
  node._ownerScope || scope || ctxToScope(ctx),
17783
17785
  typeParameters
17784
17786
  );
17787
+ return canCache ? node._resolvedElements = resolved : resolved;
17785
17788
  }
17786
17789
  function innerResolveTypeElements(ctx, node, scope, typeParameters) {
17787
17790
  var _a, _b;
@@ -17832,8 +17835,9 @@ function innerResolveTypeElements(ctx, node, scope, typeParameters) {
17832
17835
  }
17833
17836
  const resolved = resolveTypeReference(ctx, node, scope);
17834
17837
  if (resolved) {
17835
- const typeParams = /* @__PURE__ */ Object.create(null);
17838
+ let typeParams;
17836
17839
  if ((resolved.type === "TSTypeAliasDeclaration" || resolved.type === "TSInterfaceDeclaration") && resolved.typeParameters && node.typeParameters) {
17840
+ typeParams = /* @__PURE__ */ Object.create(null);
17837
17841
  resolved.typeParameters.params.forEach((p, i) => {
17838
17842
  let param = typeParameters && typeParameters[p.name];
17839
17843
  if (!param)
@@ -17922,6 +17926,7 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
17922
17926
  if (e.type === "TSPropertySignature" || e.type === "TSMethodSignature") {
17923
17927
  if (typeParameters) {
17924
17928
  scope = createChildScope(scope);
17929
+ scope.isGenericScope = true;
17925
17930
  Object.assign(scope.types, typeParameters);
17926
17931
  }
17927
17932
  e._ownerScope = scope;
@@ -18219,16 +18224,18 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
18219
18224
  }
18220
18225
  }
18221
18226
  function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
18222
- if (node._resolvedReference) {
18227
+ const canCache = !(scope == null ? void 0 : scope.isGenericScope);
18228
+ if (canCache && node._resolvedReference) {
18223
18229
  return node._resolvedReference;
18224
18230
  }
18225
- return node._resolvedReference = innerResolveTypeReference(
18231
+ const resolved = innerResolveTypeReference(
18226
18232
  ctx,
18227
18233
  scope || ctxToScope(ctx),
18228
18234
  name || getReferenceName(node),
18229
18235
  node,
18230
18236
  onlyExported
18231
18237
  );
18238
+ return canCache ? node._resolvedReference = resolved : resolved;
18232
18239
  }
18233
18240
  function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
18234
18241
  if (typeof name === "string") {
@@ -20560,8 +20567,12 @@ function isStaticNode(node) {
20560
20567
  return false;
20561
20568
  }
20562
20569
 
20563
- const version = "3.4.0-beta.4";
20570
+ const version = "3.4.0-rc.2";
20564
20571
  const parseCache = parseCache$1;
20572
+ const errorMessages = {
20573
+ ...CompilerDOM.errorMessages,
20574
+ ...CompilerDOM.DOMErrorMessages
20575
+ };
20565
20576
  const walk = estreeWalker.walk;
20566
20577
  const shouldTransformRef = () => false;
20567
20578
 
@@ -20576,6 +20587,7 @@ exports.compileScript = compileScript;
20576
20587
  exports.compileStyle = compileStyle;
20577
20588
  exports.compileStyleAsync = compileStyleAsync;
20578
20589
  exports.compileTemplate = compileTemplate;
20590
+ exports.errorMessages = errorMessages;
20579
20591
  exports.extractRuntimeEmits = extractRuntimeEmits;
20580
20592
  exports.extractRuntimeProps = extractRuntimeProps;
20581
20593
  exports.inferRuntimeType = inferRuntimeType;
@@ -432,6 +432,7 @@ declare class TypeScope {
432
432
  types: Record<string, ScopeTypeNode>;
433
433
  declares: Record<string, ScopeTypeNode>;
434
434
  constructor(filename: string, source: string, offset?: number, imports?: Record<string, Import>, types?: Record<string, ScopeTypeNode>, declares?: Record<string, ScopeTypeNode>);
435
+ isGenericScope: boolean;
435
436
  resolvedImportSources: Record<string, string>;
436
437
  exportedTypes: Record<string, ScopeTypeNode>;
437
438
  exportedDeclares: Record<string, ScopeTypeNode>;
@@ -467,6 +468,61 @@ export declare function extractRuntimeEmits(ctx: TypeResolveContext): Set<string
467
468
  export declare const version: string;
468
469
 
469
470
  export declare const parseCache: Map<string, SFCParseResult>;
471
+ export declare const errorMessages: {
472
+ 0: string;
473
+ 1: string;
474
+ 2: string;
475
+ 3: string;
476
+ 4: string;
477
+ 5: string;
478
+ 6: string;
479
+ 7: string;
480
+ 8: string;
481
+ 9: string;
482
+ 10: string;
483
+ 11: string;
484
+ 12: string;
485
+ 13: string;
486
+ 14: string;
487
+ 15: string;
488
+ 16: string;
489
+ 17: string;
490
+ 18: string;
491
+ 19: string;
492
+ 20: string;
493
+ 21: string;
494
+ 22: string;
495
+ 23: string;
496
+ 24: string;
497
+ 25: string;
498
+ 26: string;
499
+ 27: string;
500
+ 28: string;
501
+ 29: string;
502
+ 30: string;
503
+ 31: string;
504
+ 32: string;
505
+ 33: string;
506
+ 34: string;
507
+ 35: string;
508
+ 36: string;
509
+ 37: string;
510
+ 38: string;
511
+ 39: string;
512
+ 40: string;
513
+ 41: string;
514
+ 42: string;
515
+ 43: string;
516
+ 44: string;
517
+ 45: string;
518
+ 46: string;
519
+ 47: string;
520
+ 48: string;
521
+ 49: string;
522
+ 50: string;
523
+ 51: string;
524
+ 52: string;
525
+ };
470
526
 
471
527
  export declare const walk: any;
472
528
 
@@ -2150,7 +2150,7 @@ function defaultOnWarn(msg) {
2150
2150
  console.warn(`[Vue warn] ${msg.message}`);
2151
2151
  }
2152
2152
  function createCompilerError(code, loc, messages, additionalMessage) {
2153
- const msg = (messages || errorMessages)[code] + (additionalMessage || ``) ;
2153
+ const msg = (messages || errorMessages$1)[code] + (additionalMessage || ``) ;
2154
2154
  const error = new SyntaxError(String(msg));
2155
2155
  error.code = code;
2156
2156
  error.loc = loc;
@@ -2264,7 +2264,7 @@ const ErrorCodes = {
2264
2264
  "__EXTEND_POINT__": 52,
2265
2265
  "52": "__EXTEND_POINT__"
2266
2266
  };
2267
- const errorMessages = {
2267
+ const errorMessages$1 = {
2268
2268
  // parse errors
2269
2269
  [0]: "Illegal comment.",
2270
2270
  [1]: "CDATA section is allowed only in XML context.",
@@ -17669,12 +17669,6 @@ const tokenizer$2 = new Tokenizer$1(stack, {
17669
17669
  loc: getLoc(start - 1, end),
17670
17670
  codegenNode: void 0
17671
17671
  };
17672
- if (tokenizer$2.inSFCRoot) {
17673
- currentOpenTag.innerLoc = getLoc(
17674
- end + fastForward(end) + 1,
17675
- end
17676
- );
17677
- }
17678
17672
  },
17679
17673
  onopentagend(end) {
17680
17674
  endOpenTag(end);
@@ -17992,6 +17986,9 @@ function getSlice(start, end) {
17992
17986
  return currentInput.slice(start, end);
17993
17987
  }
17994
17988
  function endOpenTag(end) {
17989
+ if (tokenizer$2.inSFCRoot) {
17990
+ currentOpenTag.innerLoc = getLoc(end + 1, end + 1);
17991
+ }
17995
17992
  addNode(currentOpenTag);
17996
17993
  const { tag, ns } = currentOpenTag;
17997
17994
  if (ns === 0 && currentOptions.isPreTag(tag)) {
@@ -18025,7 +18022,7 @@ function onCloseTag(el, end, isImplied = false) {
18025
18022
  if (isImplied) {
18026
18023
  setLocEnd(el.loc, backTrack(end, 60));
18027
18024
  } else {
18028
- setLocEnd(el.loc, end + fastForward(end) + 1);
18025
+ setLocEnd(el.loc, end + 1);
18029
18026
  }
18030
18027
  if (tokenizer$2.inSFCRoot) {
18031
18028
  if (el.children.length) {
@@ -18062,13 +18059,6 @@ function onCloseTag(el, end, isImplied = false) {
18062
18059
  tokenizer$2.inXML = false;
18063
18060
  }
18064
18061
  }
18065
- function fastForward(start, c) {
18066
- let offset = 0;
18067
- while (currentInput.charCodeAt(start + offset) !== 62 && start + offset < currentInput.length) {
18068
- offset++;
18069
- }
18070
- return offset;
18071
- }
18072
18062
  function backTrack(index, c) {
18073
18063
  let i = index;
18074
18064
  while (currentInput.charCodeAt(i) !== c && i >= 0)
@@ -25788,7 +25778,7 @@ var CompilerDOM = /*#__PURE__*/Object.freeze({
25788
25778
  createTemplateLiteral: createTemplateLiteral,
25789
25779
  createTransformContext: createTransformContext,
25790
25780
  createVNodeCall: createVNodeCall,
25791
- errorMessages: errorMessages,
25781
+ errorMessages: errorMessages$1,
25792
25782
  extractIdentifiers: extractIdentifiers$1,
25793
25783
  findDir: findDir,
25794
25784
  findProp: findProp,
@@ -30844,21 +30834,21 @@ function parseUriParts(urlString) {
30844
30834
  return urlParse(isString$2(urlString) ? urlString : "", false, true);
30845
30835
  }
30846
30836
 
30847
- var __defProp$8 = Object.defineProperty;
30837
+ var __defProp$9 = Object.defineProperty;
30848
30838
  var __defProps$8 = Object.defineProperties;
30849
30839
  var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
30850
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
30851
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
30852
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
30853
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30854
- var __spreadValues$8 = (a, b) => {
30840
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
30841
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
30842
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
30843
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30844
+ var __spreadValues$9 = (a, b) => {
30855
30845
  for (var prop in b || (b = {}))
30856
- if (__hasOwnProp$8.call(b, prop))
30857
- __defNormalProp$8(a, prop, b[prop]);
30858
- if (__getOwnPropSymbols$8)
30859
- for (var prop of __getOwnPropSymbols$8(b)) {
30860
- if (__propIsEnum$8.call(b, prop))
30861
- __defNormalProp$8(a, prop, b[prop]);
30846
+ if (__hasOwnProp$9.call(b, prop))
30847
+ __defNormalProp$9(a, prop, b[prop]);
30848
+ if (__getOwnPropSymbols$9)
30849
+ for (var prop of __getOwnPropSymbols$9(b)) {
30850
+ if (__propIsEnum$9.call(b, prop))
30851
+ __defNormalProp$9(a, prop, b[prop]);
30862
30852
  }
30863
30853
  return a;
30864
30854
  };
@@ -30876,11 +30866,11 @@ const defaultAssetUrlOptions = {
30876
30866
  };
30877
30867
  const normalizeOptions = (options) => {
30878
30868
  if (Object.keys(options).some((key) => isArray$3(options[key]))) {
30879
- return __spreadProps$8(__spreadValues$8({}, defaultAssetUrlOptions), {
30869
+ return __spreadProps$8(__spreadValues$9({}, defaultAssetUrlOptions), {
30880
30870
  tags: options
30881
30871
  });
30882
30872
  }
30883
- return __spreadValues$8(__spreadValues$8({}, defaultAssetUrlOptions), options);
30873
+ return __spreadValues$9(__spreadValues$9({}, defaultAssetUrlOptions), options);
30884
30874
  };
30885
30875
  const createAssetUrlTransformWithOptions = (options) => {
30886
30876
  return (node, context) => transformAssetUrl(node, context, options);
@@ -31740,21 +31730,21 @@ function ssrProcessTransition(node, context) {
31740
31730
  }
31741
31731
  }
31742
31732
 
31743
- var __defProp$7 = Object.defineProperty;
31733
+ var __defProp$8 = Object.defineProperty;
31744
31734
  var __defProps$7 = Object.defineProperties;
31745
31735
  var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
31746
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
31747
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
31748
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
31749
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31750
- var __spreadValues$7 = (a, b) => {
31736
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
31737
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
31738
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
31739
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31740
+ var __spreadValues$8 = (a, b) => {
31751
31741
  for (var prop in b || (b = {}))
31752
- if (__hasOwnProp$7.call(b, prop))
31753
- __defNormalProp$7(a, prop, b[prop]);
31754
- if (__getOwnPropSymbols$7)
31755
- for (var prop of __getOwnPropSymbols$7(b)) {
31756
- if (__propIsEnum$7.call(b, prop))
31757
- __defNormalProp$7(a, prop, b[prop]);
31742
+ if (__hasOwnProp$8.call(b, prop))
31743
+ __defNormalProp$8(a, prop, b[prop]);
31744
+ if (__getOwnPropSymbols$8)
31745
+ for (var prop of __getOwnPropSymbols$8(b)) {
31746
+ if (__propIsEnum$8.call(b, prop))
31747
+ __defNormalProp$8(a, prop, b[prop]);
31758
31748
  }
31759
31749
  return a;
31760
31750
  };
@@ -31902,16 +31892,16 @@ function ssrProcessComponent(node, context, parent) {
31902
31892
  const rawOptionsMap = /* @__PURE__ */ new WeakMap();
31903
31893
  const [baseNodeTransforms, baseDirectiveTransforms] = getBaseTransformPreset(true);
31904
31894
  const vnodeNodeTransforms = [...baseNodeTransforms, ...DOMNodeTransforms];
31905
- const vnodeDirectiveTransforms = __spreadValues$7(__spreadValues$7({}, baseDirectiveTransforms), DOMDirectiveTransforms);
31895
+ const vnodeDirectiveTransforms = __spreadValues$8(__spreadValues$8({}, baseDirectiveTransforms), DOMDirectiveTransforms);
31906
31896
  function createVNodeSlotBranch(slotProps, vFor, children, parentContext) {
31907
31897
  const rawOptions = rawOptionsMap.get(parentContext.root);
31908
- const subOptions = __spreadProps$7(__spreadValues$7({}, rawOptions), {
31898
+ const subOptions = __spreadProps$7(__spreadValues$8({}, rawOptions), {
31909
31899
  // overwrite with vnode-based transforms
31910
31900
  nodeTransforms: [
31911
31901
  ...vnodeNodeTransforms,
31912
31902
  ...rawOptions.nodeTransforms || []
31913
31903
  ],
31914
- directiveTransforms: __spreadValues$7(__spreadValues$7({}, vnodeDirectiveTransforms), rawOptions.directiveTransforms || {})
31904
+ directiveTransforms: __spreadValues$8(__spreadValues$8({}, vnodeDirectiveTransforms), rawOptions.directiveTransforms || {})
31915
31905
  });
31916
31906
  const wrapperProps = [];
31917
31907
  if (slotProps) {
@@ -31944,8 +31934,8 @@ function subTransform(node, options, parentContext) {
31944
31934
  const childRoot = createRoot([node]);
31945
31935
  const childContext = createTransformContext(childRoot, options);
31946
31936
  childContext.ssr = false;
31947
- childContext.scopes = __spreadValues$7({}, parentContext.scopes);
31948
- childContext.identifiers = __spreadValues$7({}, parentContext.identifiers);
31937
+ childContext.scopes = __spreadValues$8({}, parentContext.scopes);
31938
+ childContext.identifiers = __spreadValues$8({}, parentContext.identifiers);
31949
31939
  childContext.imports = parentContext.imports;
31950
31940
  traverseNode(childRoot, childContext);
31951
31941
  ["helpers", "components", "directives"].forEach((key) => {
@@ -32394,27 +32384,27 @@ function injectCssVars(node) {
32394
32384
  }
32395
32385
  }
32396
32386
 
32397
- var __defProp$6 = Object.defineProperty;
32387
+ var __defProp$7 = Object.defineProperty;
32398
32388
  var __defProps$6 = Object.defineProperties;
32399
32389
  var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
32400
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
32401
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
32402
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
32403
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
32404
- var __spreadValues$6 = (a, b) => {
32390
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
32391
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
32392
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
32393
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
32394
+ var __spreadValues$7 = (a, b) => {
32405
32395
  for (var prop in b || (b = {}))
32406
- if (__hasOwnProp$6.call(b, prop))
32407
- __defNormalProp$6(a, prop, b[prop]);
32408
- if (__getOwnPropSymbols$6)
32409
- for (var prop of __getOwnPropSymbols$6(b)) {
32410
- if (__propIsEnum$6.call(b, prop))
32411
- __defNormalProp$6(a, prop, b[prop]);
32396
+ if (__hasOwnProp$7.call(b, prop))
32397
+ __defNormalProp$7(a, prop, b[prop]);
32398
+ if (__getOwnPropSymbols$7)
32399
+ for (var prop of __getOwnPropSymbols$7(b)) {
32400
+ if (__propIsEnum$7.call(b, prop))
32401
+ __defNormalProp$7(a, prop, b[prop]);
32412
32402
  }
32413
32403
  return a;
32414
32404
  };
32415
32405
  var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
32416
32406
  function compile(source, options = {}) {
32417
- options = __spreadProps$6(__spreadValues$6(__spreadValues$6({}, options), parserOptions), {
32407
+ options = __spreadProps$6(__spreadValues$7(__spreadValues$7({}, options), parserOptions), {
32418
32408
  ssr: true,
32419
32409
  inSSR: true,
32420
32410
  scopeId: options.mode === "function" ? null : options.scopeId,
@@ -32426,7 +32416,7 @@ function compile(source, options = {}) {
32426
32416
  });
32427
32417
  const ast = typeof source === "string" ? baseParse(source, options) : source;
32428
32418
  rawOptionsMap.set(ast, options);
32429
- transform(ast, __spreadProps$6(__spreadValues$6({}, options), {
32419
+ transform(ast, __spreadProps$6(__spreadValues$7({}, options), {
32430
32420
  hoistStatic: false,
32431
32421
  nodeTransforms: [
32432
32422
  ssrTransformIf,
@@ -32443,7 +32433,7 @@ function compile(source, options = {}) {
32443
32433
  ...options.nodeTransforms || []
32444
32434
  // user transforms
32445
32435
  ],
32446
- directiveTransforms: __spreadValues$6({
32436
+ directiveTransforms: __spreadValues$7({
32447
32437
  // reusing core v-bind
32448
32438
  bind: transformBind,
32449
32439
  on: transformOn$1,
@@ -32494,21 +32484,21 @@ function warn(msg) {
32494
32484
  );
32495
32485
  }
32496
32486
 
32497
- var __defProp$5 = Object.defineProperty;
32487
+ var __defProp$6 = Object.defineProperty;
32498
32488
  var __defProps$5 = Object.defineProperties;
32499
32489
  var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
32500
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
32501
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
32502
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
32503
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
32504
- var __spreadValues$5 = (a, b) => {
32490
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
32491
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
32492
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
32493
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
32494
+ var __spreadValues$6 = (a, b) => {
32505
32495
  for (var prop in b || (b = {}))
32506
- if (__hasOwnProp$5.call(b, prop))
32507
- __defNormalProp$5(a, prop, b[prop]);
32508
- if (__getOwnPropSymbols$5)
32509
- for (var prop of __getOwnPropSymbols$5(b)) {
32510
- if (__propIsEnum$5.call(b, prop))
32511
- __defNormalProp$5(a, prop, b[prop]);
32496
+ if (__hasOwnProp$6.call(b, prop))
32497
+ __defNormalProp$6(a, prop, b[prop]);
32498
+ if (__getOwnPropSymbols$6)
32499
+ for (var prop of __getOwnPropSymbols$6(b)) {
32500
+ if (__propIsEnum$6.call(b, prop))
32501
+ __defNormalProp$6(a, prop, b[prop]);
32512
32502
  }
32513
32503
  return a;
32514
32504
  };
@@ -32518,7 +32508,7 @@ function preprocess$1({ source, filename, preprocessOptions }, preprocessor) {
32518
32508
  let err = null;
32519
32509
  preprocessor.render(
32520
32510
  source,
32521
- __spreadValues$5({ filename }, preprocessOptions),
32511
+ __spreadValues$6({ filename }, preprocessOptions),
32522
32512
  (_err, _res) => {
32523
32513
  if (_err)
32524
32514
  err = _err;
@@ -32539,7 +32529,7 @@ function compileTemplate(options) {
32539
32529
  const preprocessor = preprocessLang ? preprocessCustomRequire ? preprocessCustomRequire(preprocessLang) : void 0 : false;
32540
32530
  if (preprocessor) {
32541
32531
  try {
32542
- return doCompileTemplate(__spreadProps$5(__spreadValues$5({}, options), {
32532
+ return doCompileTemplate(__spreadProps$5(__spreadValues$6({}, options), {
32543
32533
  source: preprocess$1(options, preprocessor),
32544
32534
  ast: void 0
32545
32535
  // invalidate AST if template goes through preprocessor
@@ -32620,7 +32610,7 @@ function doCompileTemplate({
32620
32610
  );
32621
32611
  inAST = createRoot(template.children, inAST.source);
32622
32612
  }
32623
- let { code, ast, preamble, map } = compiler.compile(inAST || source, __spreadProps$5(__spreadValues$5({
32613
+ let { code, ast, preamble, map } = compiler.compile(inAST || source, __spreadProps$5(__spreadValues$6({
32624
32614
  mode: "module",
32625
32615
  prefixIdentifiers: true,
32626
32616
  hoistStatic: true,
@@ -43925,28 +43915,28 @@ function merge(oldMap, newMap) {
43925
43915
 
43926
43916
  var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(mergeSourceMap);
43927
43917
 
43928
- var __defProp$4 = Object.defineProperty;
43918
+ var __defProp$5 = Object.defineProperty;
43929
43919
  var __defProps$4 = Object.defineProperties;
43930
43920
  var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
43931
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
43932
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
43933
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
43934
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
43935
- var __spreadValues$4 = (a, b) => {
43921
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
43922
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
43923
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
43924
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
43925
+ var __spreadValues$5 = (a, b) => {
43936
43926
  for (var prop in b || (b = {}))
43937
- if (__hasOwnProp$4.call(b, prop))
43938
- __defNormalProp$4(a, prop, b[prop]);
43939
- if (__getOwnPropSymbols$4)
43940
- for (var prop of __getOwnPropSymbols$4(b)) {
43941
- if (__propIsEnum$4.call(b, prop))
43942
- __defNormalProp$4(a, prop, b[prop]);
43927
+ if (__hasOwnProp$5.call(b, prop))
43928
+ __defNormalProp$5(a, prop, b[prop]);
43929
+ if (__getOwnPropSymbols$5)
43930
+ for (var prop of __getOwnPropSymbols$5(b)) {
43931
+ if (__propIsEnum$5.call(b, prop))
43932
+ __defNormalProp$5(a, prop, b[prop]);
43943
43933
  }
43944
43934
  return a;
43945
43935
  };
43946
43936
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
43947
43937
  const scss = (source, map, options, load = require) => {
43948
43938
  const nodeSass = load("sass");
43949
- const finalOptions = __spreadProps$4(__spreadValues$4({}, options), {
43939
+ const finalOptions = __spreadProps$4(__spreadValues$5({}, options), {
43950
43940
  data: getSource(source, options.filename, options.additionalData),
43951
43941
  file: options.filename,
43952
43942
  outFile: options.filename,
@@ -43974,7 +43964,7 @@ const scss = (source, map, options, load = require) => {
43974
43964
  const sass = (source, map, options, load) => scss(
43975
43965
  source,
43976
43966
  map,
43977
- __spreadProps$4(__spreadValues$4({}, options), {
43967
+ __spreadProps$4(__spreadValues$5({}, options), {
43978
43968
  indentedSyntax: true
43979
43969
  }),
43980
43970
  load
@@ -43985,7 +43975,7 @@ const less = (source, map, options, load = require) => {
43985
43975
  let error = null;
43986
43976
  nodeLess.render(
43987
43977
  getSource(source, options.filename, options.additionalData),
43988
- __spreadProps$4(__spreadValues$4({}, options), { syncImport: true }),
43978
+ __spreadProps$4(__spreadValues$5({}, options), { syncImport: true }),
43989
43979
  (err, output) => {
43990
43980
  error = err;
43991
43981
  result = output;
@@ -44045,32 +44035,32 @@ const processors = {
44045
44035
  stylus: styl
44046
44036
  };
44047
44037
 
44048
- var __defProp$3 = Object.defineProperty;
44038
+ var __defProp$4 = Object.defineProperty;
44049
44039
  var __defProps$3 = Object.defineProperties;
44050
44040
  var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
44051
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
44052
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
44053
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
44054
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
44055
- var __spreadValues$3 = (a, b) => {
44041
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
44042
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
44043
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
44044
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
44045
+ var __spreadValues$4 = (a, b) => {
44056
44046
  for (var prop in b || (b = {}))
44057
- if (__hasOwnProp$3.call(b, prop))
44058
- __defNormalProp$3(a, prop, b[prop]);
44059
- if (__getOwnPropSymbols$3)
44060
- for (var prop of __getOwnPropSymbols$3(b)) {
44061
- if (__propIsEnum$3.call(b, prop))
44062
- __defNormalProp$3(a, prop, b[prop]);
44047
+ if (__hasOwnProp$4.call(b, prop))
44048
+ __defNormalProp$4(a, prop, b[prop]);
44049
+ if (__getOwnPropSymbols$4)
44050
+ for (var prop of __getOwnPropSymbols$4(b)) {
44051
+ if (__propIsEnum$4.call(b, prop))
44052
+ __defNormalProp$4(a, prop, b[prop]);
44063
44053
  }
44064
44054
  return a;
44065
44055
  };
44066
44056
  var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
44067
44057
  function compileStyle(options) {
44068
- return doCompileStyle(__spreadProps$3(__spreadValues$3({}, options), {
44058
+ return doCompileStyle(__spreadProps$3(__spreadValues$4({}, options), {
44069
44059
  isAsync: false
44070
44060
  }));
44071
44061
  }
44072
44062
  function compileStyleAsync(options) {
44073
- return doCompileStyle(__spreadProps$3(__spreadValues$3({}, options), {
44063
+ return doCompileStyle(__spreadProps$3(__spreadValues$4({}, options), {
44074
44064
  isAsync: true
44075
44065
  }));
44076
44066
  }
@@ -44109,7 +44099,7 @@ function doCompileStyle(options) {
44109
44099
  );
44110
44100
  }
44111
44101
  }
44112
- const postCSSOptions = __spreadProps$3(__spreadValues$3({}, postcssOptions), {
44102
+ const postCSSOptions = __spreadProps$3(__spreadValues$4({}, postcssOptions), {
44113
44103
  to: filename,
44114
44104
  from: filename
44115
44105
  });
@@ -44180,7 +44170,7 @@ function preprocess(options, preprocessor) {
44180
44170
  return preprocessor(
44181
44171
  options.source,
44182
44172
  options.inMap || options.map,
44183
- __spreadValues$3({
44173
+ __spreadValues$4({
44184
44174
  filename: options.filename
44185
44175
  }, options.preprocessOptions),
44186
44176
  options.preprocessCustomRequire
@@ -45747,21 +45737,21 @@ function specifierEnd(s, end, nodeEnd) {
45747
45737
  return hasCommas ? end : oldEnd;
45748
45738
  }
45749
45739
 
45750
- var __defProp$2 = Object.defineProperty;
45740
+ var __defProp$3 = Object.defineProperty;
45751
45741
  var __defProps$2 = Object.defineProperties;
45752
45742
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
45753
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
45754
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
45755
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
45756
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45757
- var __spreadValues$2 = (a, b) => {
45743
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
45744
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
45745
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
45746
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45747
+ var __spreadValues$3 = (a, b) => {
45758
45748
  for (var prop in b || (b = {}))
45759
- if (__hasOwnProp$2.call(b, prop))
45760
- __defNormalProp$2(a, prop, b[prop]);
45761
- if (__getOwnPropSymbols$2)
45762
- for (var prop of __getOwnPropSymbols$2(b)) {
45763
- if (__propIsEnum$2.call(b, prop))
45764
- __defNormalProp$2(a, prop, b[prop]);
45749
+ if (__hasOwnProp$3.call(b, prop))
45750
+ __defNormalProp$3(a, prop, b[prop]);
45751
+ if (__getOwnPropSymbols$3)
45752
+ for (var prop of __getOwnPropSymbols$3(b)) {
45753
+ if (__propIsEnum$3.call(b, prop))
45754
+ __defNormalProp$3(a, prop, b[prop]);
45765
45755
  }
45766
45756
  return a;
45767
45757
  };
@@ -45799,7 +45789,7 @@ function processNormalScript(ctx, scopeId) {
45799
45789
  export default ${defaultVar}`;
45800
45790
  }
45801
45791
  }
45802
- return __spreadProps$2(__spreadValues$2({}, script), {
45792
+ return __spreadProps$2(__spreadValues$3({}, script), {
45803
45793
  content,
45804
45794
  map,
45805
45795
  bindings,
@@ -45810,21 +45800,21 @@ export default ${defaultVar}`;
45810
45800
  }
45811
45801
  }
45812
45802
 
45813
- var __defProp$1 = Object.defineProperty;
45803
+ var __defProp$2 = Object.defineProperty;
45814
45804
  var __defProps$1 = Object.defineProperties;
45815
45805
  var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
45816
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
45817
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
45818
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
45819
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45820
- var __spreadValues$1 = (a, b) => {
45806
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
45807
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
45808
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
45809
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45810
+ var __spreadValues$2 = (a, b) => {
45821
45811
  for (var prop in b || (b = {}))
45822
- if (__hasOwnProp$1.call(b, prop))
45823
- __defNormalProp$1(a, prop, b[prop]);
45824
- if (__getOwnPropSymbols$1)
45825
- for (var prop of __getOwnPropSymbols$1(b)) {
45826
- if (__propIsEnum$1.call(b, prop))
45827
- __defNormalProp$1(a, prop, b[prop]);
45812
+ if (__hasOwnProp$2.call(b, prop))
45813
+ __defNormalProp$2(a, prop, b[prop]);
45814
+ if (__getOwnPropSymbols$2)
45815
+ for (var prop of __getOwnPropSymbols$2(b)) {
45816
+ if (__propIsEnum$2.call(b, prop))
45817
+ __defNormalProp$2(a, prop, b[prop]);
45828
45818
  }
45829
45819
  return a;
45830
45820
  };
@@ -45837,21 +45827,24 @@ class TypeScope {
45837
45827
  this.imports = imports;
45838
45828
  this.types = types;
45839
45829
  this.declares = declares;
45830
+ this.isGenericScope = false;
45840
45831
  this.resolvedImportSources = /* @__PURE__ */ Object.create(null);
45841
45832
  this.exportedTypes = /* @__PURE__ */ Object.create(null);
45842
45833
  this.exportedDeclares = /* @__PURE__ */ Object.create(null);
45843
45834
  }
45844
45835
  }
45845
45836
  function resolveTypeElements(ctx, node, scope, typeParameters) {
45846
- if (node._resolvedElements) {
45837
+ const canCache = !typeParameters;
45838
+ if (canCache && node._resolvedElements) {
45847
45839
  return node._resolvedElements;
45848
45840
  }
45849
- return node._resolvedElements = innerResolveTypeElements(
45841
+ const resolved = innerResolveTypeElements(
45850
45842
  ctx,
45851
45843
  node,
45852
45844
  node._ownerScope || scope || ctxToScope(ctx),
45853
45845
  typeParameters
45854
45846
  );
45847
+ return canCache ? node._resolvedElements = resolved : resolved;
45855
45848
  }
45856
45849
  function innerResolveTypeElements(ctx, node, scope, typeParameters) {
45857
45850
  var _a, _b;
@@ -45902,8 +45895,9 @@ function innerResolveTypeElements(ctx, node, scope, typeParameters) {
45902
45895
  }
45903
45896
  const resolved = resolveTypeReference(ctx, node, scope);
45904
45897
  if (resolved) {
45905
- const typeParams = /* @__PURE__ */ Object.create(null);
45898
+ let typeParams;
45906
45899
  if ((resolved.type === "TSTypeAliasDeclaration" || resolved.type === "TSInterfaceDeclaration") && resolved.typeParameters && node.typeParameters) {
45900
+ typeParams = /* @__PURE__ */ Object.create(null);
45907
45901
  resolved.typeParameters.params.forEach((p, i) => {
45908
45902
  let param = typeParameters && typeParameters[p.name];
45909
45903
  if (!param)
@@ -45992,6 +45986,7 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
45992
45986
  if (e.type === "TSPropertySignature" || e.type === "TSMethodSignature") {
45993
45987
  if (typeParameters) {
45994
45988
  scope = createChildScope(scope);
45989
+ scope.isGenericScope = true;
45995
45990
  Object.assign(scope.types, typeParameters);
45996
45991
  }
45997
45992
  e._ownerScope = scope;
@@ -46216,7 +46211,7 @@ function resolveTemplateKeys(ctx, node, scope) {
46216
46211
  const resolved = resolveStringType(ctx, e, scope);
46217
46212
  const restResolved = resolveTemplateKeys(
46218
46213
  ctx,
46219
- __spreadProps$1(__spreadValues$1({}, node), {
46214
+ __spreadProps$1(__spreadValues$2({}, node), {
46220
46215
  expressions: node.expressions.slice(1),
46221
46216
  quasis: q ? node.quasis.slice(1) : node.quasis
46222
46217
  }),
@@ -46247,14 +46242,14 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
46247
46242
  case "Partial": {
46248
46243
  const res2 = { props: {}, calls: t.calls };
46249
46244
  Object.keys(t.props).forEach((key) => {
46250
- res2.props[key] = __spreadProps$1(__spreadValues$1({}, t.props[key]), { optional: true });
46245
+ res2.props[key] = __spreadProps$1(__spreadValues$2({}, t.props[key]), { optional: true });
46251
46246
  });
46252
46247
  return res2;
46253
46248
  }
46254
46249
  case "Required": {
46255
46250
  const res2 = { props: {}, calls: t.calls };
46256
46251
  Object.keys(t.props).forEach((key) => {
46257
- res2.props[key] = __spreadProps$1(__spreadValues$1({}, t.props[key]), { optional: false });
46252
+ res2.props[key] = __spreadProps$1(__spreadValues$2({}, t.props[key]), { optional: false });
46258
46253
  });
46259
46254
  return res2;
46260
46255
  }
@@ -46288,16 +46283,18 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
46288
46283
  }
46289
46284
  }
46290
46285
  function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
46291
- if (node._resolvedReference) {
46286
+ const canCache = !(scope == null ? void 0 : scope.isGenericScope);
46287
+ if (canCache && node._resolvedReference) {
46292
46288
  return node._resolvedReference;
46293
46289
  }
46294
- return node._resolvedReference = innerResolveTypeReference(
46290
+ const resolved = innerResolveTypeReference(
46295
46291
  ctx,
46296
46292
  scope || ctxToScope(ctx),
46297
46293
  name || getReferenceName(node),
46298
46294
  node,
46299
46295
  onlyExported
46300
46296
  );
46297
+ return canCache ? node._resolvedReference = resolved : resolved;
46301
46298
  }
46302
46299
  function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
46303
46300
  if (typeof name === "string") {
@@ -47769,21 +47766,21 @@ function processAwait(ctx, node, needSemi, isStatement) {
47769
47766
  );
47770
47767
  }
47771
47768
 
47772
- var __defProp = Object.defineProperty;
47769
+ var __defProp$1 = Object.defineProperty;
47773
47770
  var __defProps = Object.defineProperties;
47774
47771
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
47775
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
47776
- var __hasOwnProp = Object.prototype.hasOwnProperty;
47777
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
47778
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
47779
- var __spreadValues = (a, b) => {
47772
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
47773
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
47774
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
47775
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
47776
+ var __spreadValues$1 = (a, b) => {
47780
47777
  for (var prop in b || (b = {}))
47781
- if (__hasOwnProp.call(b, prop))
47782
- __defNormalProp(a, prop, b[prop]);
47783
- if (__getOwnPropSymbols)
47784
- for (var prop of __getOwnPropSymbols(b)) {
47785
- if (__propIsEnum.call(b, prop))
47786
- __defNormalProp(a, prop, b[prop]);
47778
+ if (__hasOwnProp$1.call(b, prop))
47779
+ __defNormalProp$1(a, prop, b[prop]);
47780
+ if (__getOwnPropSymbols$1)
47781
+ for (var prop of __getOwnPropSymbols$1(b)) {
47782
+ if (__propIsEnum$1.call(b, prop))
47783
+ __defNormalProp$1(a, prop, b[prop]);
47787
47784
  }
47788
47785
  return a;
47789
47786
  };
@@ -48234,7 +48231,7 @@ let __temp${any}, __restore${any}
48234
48231
  }
48235
48232
  let returned;
48236
48233
  if (!options.inlineTemplate || !sfc.template && ctx.hasDefaultExportRender) {
48237
- const allBindings = __spreadValues(__spreadValues({}, scriptBindings), setupBindings);
48234
+ const allBindings = __spreadValues$1(__spreadValues$1({}, scriptBindings), setupBindings);
48238
48235
  for (const key in ctx.userImports) {
48239
48236
  if (!ctx.userImports[key].isType && ctx.userImports[key].isUsedInTemplate) {
48240
48237
  allBindings[key] = true;
@@ -48257,7 +48254,7 @@ let __temp${any}, __restore${any}
48257
48254
  if (options.templateOptions && options.templateOptions.ssr) {
48258
48255
  hasInlinedSsrRenderFn = true;
48259
48256
  }
48260
- const { code, ast, preamble, tips, errors } = compileTemplate(__spreadProps(__spreadValues({
48257
+ const { code, ast, preamble, tips, errors } = compileTemplate(__spreadProps(__spreadValues$1({
48261
48258
  filename,
48262
48259
  ast: sfc.template.ast,
48263
48260
  source: sfc.template.content,
@@ -48267,7 +48264,7 @@ let __temp${any}, __restore${any}
48267
48264
  scoped: sfc.styles.some((s) => s.scoped),
48268
48265
  isProd: options.isProd,
48269
48266
  ssrCssVars: sfc.cssVars,
48270
- compilerOptions: __spreadProps(__spreadValues({}, options.templateOptions && options.templateOptions.compilerOptions), {
48267
+ compilerOptions: __spreadProps(__spreadValues$1({}, options.templateOptions && options.templateOptions.compilerOptions), {
48271
48268
  inline: true,
48272
48269
  isTS: ctx.isTS,
48273
48270
  bindingMetadata: ctx.bindingMetadata
@@ -48389,7 +48386,7 @@ ${exposeCall}`
48389
48386
  `
48390
48387
  );
48391
48388
  }
48392
- return __spreadProps(__spreadValues({}, scriptSetup), {
48389
+ return __spreadProps(__spreadValues$1({}, scriptSetup), {
48393
48390
  bindings: ctx.bindingMetadata,
48394
48391
  imports: ctx.userImports,
48395
48392
  content: ctx.s.toString(),
@@ -48559,9 +48556,26 @@ function isStaticNode(node) {
48559
48556
  return false;
48560
48557
  }
48561
48558
 
48562
- const version = "3.4.0-beta.4";
48559
+ var __defProp = Object.defineProperty;
48560
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
48561
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
48562
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
48563
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
48564
+ var __spreadValues = (a, b) => {
48565
+ for (var prop in b || (b = {}))
48566
+ if (__hasOwnProp.call(b, prop))
48567
+ __defNormalProp(a, prop, b[prop]);
48568
+ if (__getOwnPropSymbols)
48569
+ for (var prop of __getOwnPropSymbols(b)) {
48570
+ if (__propIsEnum.call(b, prop))
48571
+ __defNormalProp(a, prop, b[prop]);
48572
+ }
48573
+ return a;
48574
+ };
48575
+ const version = "3.4.0-rc.2";
48563
48576
  const parseCache = parseCache$1;
48577
+ const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48564
48578
  const walk = walk$2;
48565
48579
  const shouldTransformRef = () => false;
48566
48580
 
48567
- export { MagicString, parse_1$1 as babelParse, compileScript, compileStyle, compileStyleAsync, compileTemplate, extractIdentifiers$1 as extractIdentifiers, extractRuntimeEmits, extractRuntimeProps, generateCodeFrame, inferRuntimeType, invalidateTypeCache, isInDestructureAssignment, isStaticProperty, parse$7 as parse, parseCache, registerTS, resolveTypeElements, rewriteDefault, rewriteDefaultAST, shouldTransformRef, version, walk, walkIdentifiers };
48581
+ export { MagicString, parse_1$1 as babelParse, compileScript, compileStyle, compileStyleAsync, compileTemplate, errorMessages, extractIdentifiers$1 as extractIdentifiers, extractRuntimeEmits, extractRuntimeProps, generateCodeFrame, inferRuntimeType, invalidateTypeCache, isInDestructureAssignment, isStaticProperty, parse$7 as parse, parseCache, registerTS, resolveTypeElements, rewriteDefault, rewriteDefaultAST, shouldTransformRef, version, walk, walkIdentifiers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.4.0-beta.4",
3
+ "version": "3.4.0-rc.2",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -32,18 +32,18 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
34
34
  "dependencies": {
35
- "@babel/parser": "^7.23.5",
35
+ "@babel/parser": "^7.23.6",
36
36
  "estree-walker": "^2.0.2",
37
37
  "magic-string": "^0.30.5",
38
38
  "postcss": "^8.4.32",
39
39
  "source-map-js": "^1.0.2",
40
- "@vue/compiler-core": "3.4.0-beta.4",
41
- "@vue/compiler-ssr": "3.4.0-beta.4",
42
- "@vue/compiler-dom": "3.4.0-beta.4",
43
- "@vue/shared": "3.4.0-beta.4"
40
+ "@vue/compiler-core": "3.4.0-rc.2",
41
+ "@vue/compiler-ssr": "3.4.0-rc.2",
42
+ "@vue/compiler-dom": "3.4.0-rc.2",
43
+ "@vue/shared": "3.4.0-rc.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/types": "^7.23.5",
46
+ "@babel/types": "^7.23.6",
47
47
  "@vue/consolidate": "^0.17.3",
48
48
  "hash-sum": "^2.0.0",
49
49
  "lru-cache": "^10.1.0",