@vuepress/core 2.0.0-beta.58 → 2.0.0-beta.59

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/index.d.ts CHANGED
@@ -391,7 +391,7 @@ interface AppConfigBuild {
391
391
  * Determine what resource files should be prefetched. Use boolean value to
392
392
  * totally enable / disable.
393
393
  *
394
- * @default false
394
+ * @default true
395
395
  */
396
396
  shouldPrefetch?: ((file: string, type: string) => boolean) | boolean;
397
397
  /**
package/dist/index.js CHANGED
@@ -885,14 +885,9 @@ var resolveAppVersion = () => {
885
885
  // src/app/resolveAppWriteTemp.ts
886
886
  import { fs as fs4 } from "@vuepress/utils";
887
887
  var resolveAppWriteTemp = (dir) => {
888
- const tempCache = /* @__PURE__ */ new Map();
889
888
  const writeTemp = async (file, content) => {
890
889
  const filePath = dir.temp(file);
891
- const contentCached = tempCache.get(filePath);
892
- if (contentCached !== content) {
893
- await fs4.outputFile(filePath, content);
894
- tempCache.set(filePath, content);
895
- }
890
+ await fs4.outputFile(filePath, content);
896
891
  return filePath;
897
892
  };
898
893
  return writeTemp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-beta.58",
3
+ "version": "2.0.0-beta.59",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -28,10 +28,10 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "vue": "^3.2.45",
31
- "@vuepress/client": "2.0.0-beta.58",
32
- "@vuepress/markdown": "2.0.0-beta.58",
33
- "@vuepress/utils": "2.0.0-beta.58",
34
- "@vuepress/shared": "2.0.0-beta.58"
31
+ "@vuepress/client": "2.0.0-beta.59",
32
+ "@vuepress/markdown": "2.0.0-beta.59",
33
+ "@vuepress/shared": "2.0.0-beta.59",
34
+ "@vuepress/utils": "2.0.0-beta.59"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"