@vue/compiler-sfc 3.4.14 → 3.4.16

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.4.14
2
+ * @vue/compiler-sfc v3.4.16
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -978,6 +978,11 @@ class LRUCache {
978
978
  [Symbol.iterator]() {
979
979
  return this.entries();
980
980
  }
981
+ /**
982
+ * A String value that is used in the creation of the default string description of an object.
983
+ * Called by the built-in method Object.prototype.toString.
984
+ */
985
+ [Symbol.toStringTag] = 'LRUCache';
981
986
  /**
982
987
  * Find a value for which the supplied fn method returns a truthy value,
983
988
  * similar to Array.find(). fn is called as fn(value, key, cache).
@@ -4406,7 +4411,6 @@ const trimPlugin = () => {
4406
4411
  };
4407
4412
  };
4408
4413
  trimPlugin.postcss = true;
4409
- var trimPlugin$1 = trimPlugin;
4410
4414
 
4411
4415
  var dist = {exports: {}};
4412
4416
 
@@ -7978,7 +7982,6 @@ function isSpaceCombinator(node) {
7978
7982
  return node.type === "combinator" && /^\s+$/.test(node.value);
7979
7983
  }
7980
7984
  scopedPlugin.postcss = true;
7981
- var scopedPlugin$1 = scopedPlugin;
7982
7985
 
7983
7986
  var sourceMap$1 = {};
7984
7987
 
@@ -15335,10 +15338,10 @@ function doCompileStyle(options) {
15335
15338
  const plugins = (postcssPlugins || []).slice();
15336
15339
  plugins.unshift(cssVarsPlugin({ id: shortId, isProd }));
15337
15340
  if (trim) {
15338
- plugins.push(trimPlugin$1());
15341
+ plugins.push(trimPlugin());
15339
15342
  }
15340
15343
  if (scoped) {
15341
- plugins.push(scopedPlugin$1(longId));
15344
+ plugins.push(scopedPlugin(longId));
15342
15345
  }
15343
15346
  let cssModules;
15344
15347
  if (modules) {
@@ -18367,7 +18370,8 @@ function resolveFS(ctx) {
18367
18370
  file = file.replace(/\.ts$/, "");
18368
18371
  }
18369
18372
  return fs.readFile(file);
18370
- }
18373
+ },
18374
+ realpath: fs.realpath
18371
18375
  };
18372
18376
  }
18373
18377
  function resolveTypeFromImport(ctx, node, name, scope) {
@@ -18495,7 +18499,7 @@ function resolveWithTS(containingFile, source, ts2, fs) {
18495
18499
  if (filename.endsWith(".vue.ts")) {
18496
18500
  filename = filename.replace(/\.ts$/, "");
18497
18501
  }
18498
- return filename;
18502
+ return fs.realpath ? fs.realpath(filename) : filename;
18499
18503
  }
18500
18504
  }
18501
18505
  function loadTSConfig(configPath, ts2, fs) {
@@ -20608,7 +20612,7 @@ function isStaticNode(node) {
20608
20612
  return false;
20609
20613
  }
20610
20614
 
20611
- const version = "3.4.14";
20615
+ const version = "3.4.16";
20612
20616
  const parseCache = parseCache$1;
20613
20617
  const errorMessages = {
20614
20618
  ...CompilerDOM.errorMessages,
@@ -130,6 +130,7 @@ export interface SFCScriptCompileOptions {
130
130
  fs?: {
131
131
  fileExists(file: string): boolean;
132
132
  readFile(file: string): string | undefined;
133
+ realpath?(file: string): string;
133
134
  };
134
135
  /**
135
136
  * Transform Vue SFCs into custom elements.
@@ -528,6 +529,7 @@ export declare const errorMessages: {
528
529
  50: string;
529
530
  51: string;
530
531
  52: string;
532
+ 53: string;
531
533
  };
532
534
 
533
535
  export declare const walk: any;