@vuepress/core 2.0.0-rc.4 → 2.0.0-rc.6

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
@@ -579,6 +579,7 @@ declare const appInit: (app: App) => Promise<void>;
579
579
  * Prepare files for development or build
580
580
  *
581
581
  * - page components
582
+ * - page chunks
582
583
  * - routes
583
584
  * - site data
584
585
  * - other files that generated by plugins
package/dist/index.js CHANGED
@@ -593,15 +593,15 @@ import { debug as debug4 } from "@vuepress/utils";
593
593
  var log4 = debug4("vuepress:core/app");
594
594
  var appPrepare = async (app) => {
595
595
  log4("prepare start");
596
- for (const page of app.pages) {
597
- await preparePageComponent(app, page);
598
- }
599
- for (const page of app.pages) {
600
- await preparePageChunk(app, page);
601
- }
602
- await prepareRoutes(app);
603
- await prepareSiteData(app);
604
- await prepareClientConfigs(app);
596
+ await Promise.all([
597
+ ...app.pages.flatMap((page) => [
598
+ preparePageComponent(app, page),
599
+ preparePageChunk(app, page)
600
+ ]),
601
+ prepareRoutes(app),
602
+ prepareSiteData(app),
603
+ prepareClientConfigs(app)
604
+ ]);
605
605
  await app.pluginApi.hooks.onPrepared.process(app);
606
606
  log4("prepare finish");
607
607
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-rc.4",
3
+ "version": "2.0.0-rc.6",
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.4.15",
31
- "@vuepress/client": "2.0.0-rc.4",
32
- "@vuepress/utils": "2.0.0-rc.4",
33
- "@vuepress/shared": "2.0.0-rc.4",
34
- "@vuepress/markdown": "2.0.0-rc.4"
31
+ "@vuepress/markdown": "2.0.0-rc.6",
32
+ "@vuepress/utils": "2.0.0-rc.6",
33
+ "@vuepress/shared": "2.0.0-rc.6",
34
+ "@vuepress/client": "2.0.0-rc.6"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"