@slidev/cli 52.11.0 → 52.11.1
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
|
import "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { t as resolveViteConfigs } from "./shared-
|
|
2
|
+
import { t as resolveViteConfigs } from "./shared-DgnE1q2H.mjs";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { build as build$1 } from "vite";
|
|
5
5
|
import { existsSync } from "node:fs";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-
|
|
3
|
-
import { t as createServer } from "./serve-
|
|
2
|
+
import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-DgnE1q2H.mjs";
|
|
3
|
+
import { t as createServer } from "./serve-BdfnfhEP.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -291,7 +291,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
|
|
|
291
291
|
describe: "enable the inspect plugin for debugging"
|
|
292
292
|
}).strict().help(), async (args) => {
|
|
293
293
|
const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes } = args;
|
|
294
|
-
const { build } = await import("./build-
|
|
294
|
+
const { build } = await import("./build-CcB77kTG.mjs");
|
|
295
295
|
for (const entryFile of entry) {
|
|
296
296
|
const options = await resolveOptions({
|
|
297
297
|
entry: entryFile,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-
|
|
3
|
-
import { t as createServer } from "./serve-
|
|
2
|
+
import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-DgnE1q2H.mjs";
|
|
3
|
+
import { t as createServer } from "./serve-BdfnfhEP.mjs";
|
|
4
4
|
|
|
5
5
|
export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
|
|
@@ -504,7 +504,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
|
|
|
504
504
|
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region package.json
|
|
507
|
-
var version = "52.11.
|
|
507
|
+
var version = "52.11.1";
|
|
508
508
|
|
|
509
509
|
//#endregion
|
|
510
510
|
//#region node/integrations/addons.ts
|
|
@@ -1478,16 +1478,21 @@ function createSlidesLoader(options, serverOptions) {
|
|
|
1478
1478
|
Object.assign(data, newData);
|
|
1479
1479
|
Object.assign(utils, createDataUtils(options));
|
|
1480
1480
|
if (hmrSlidesIndexes.size > 0) moduleIds.add(templateTitleRendererMd.id);
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1481
|
+
for (const idx of hmrSlidesIndexes) moduleIds.add(sourceIds.frontmatter[idx]);
|
|
1482
|
+
const reloadBeforeOthers = [];
|
|
1483
|
+
const vueModules = [];
|
|
1484
|
+
for (const idx of hmrSlidesIndexes) {
|
|
1483
1485
|
const main = ctx.server.moduleGraph.getModuleById(sourceIds.md[idx]);
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1486
|
+
if (main) {
|
|
1487
|
+
const styles = [...main.clientImportedModules].filter((m) => m.id?.includes(`&type=style`));
|
|
1488
|
+
if (styles.length) {
|
|
1489
|
+
reloadBeforeOthers.push(main);
|
|
1490
|
+
vueModules.push(...styles);
|
|
1491
|
+
} else vueModules.push(main);
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1490
1494
|
hmrSlidesIndexes.clear();
|
|
1495
|
+
await Promise.all(reloadBeforeOthers.map((m) => ctx.server.reloadModule(m)));
|
|
1491
1496
|
const moduleEntries = [
|
|
1492
1497
|
...ctx.modules.filter((i) => i.id === templateMonacoRunDeps.id || i.id === templateMonacoTypes.id),
|
|
1493
1498
|
...vueModules,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.11.
|
|
4
|
+
"version": "52.11.1",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@iconify-json/ph": "^1.2.2",
|
|
49
49
|
"@iconify-json/svg-spinners": "^1.2.4",
|
|
50
50
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
51
|
-
"@shikijs/markdown-it": "^3.
|
|
52
|
-
"@shikijs/twoslash": "^3.
|
|
53
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
51
|
+
"@shikijs/markdown-it": "^3.20.0",
|
|
52
|
+
"@shikijs/twoslash": "^3.20.0",
|
|
53
|
+
"@shikijs/vitepress-twoslash": "^3.20.0",
|
|
54
54
|
"@unocss/extractor-mdc": "^66.5.10",
|
|
55
55
|
"@unocss/reset": "^66.5.10",
|
|
56
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
56
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
58
58
|
"ansis": "^4.2.0",
|
|
59
59
|
"chokidar": "^4.0.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"resolve-from": "^5.0.0",
|
|
89
89
|
"resolve-global": "^2.0.0",
|
|
90
90
|
"semver": "^7.7.3",
|
|
91
|
-
"shiki": "^3.
|
|
91
|
+
"shiki": "^3.20.0",
|
|
92
92
|
"shiki-magic-move": "^1.2.1",
|
|
93
93
|
"sirv": "^3.0.2",
|
|
94
94
|
"source-map-js": "^1.2.1",
|
|
@@ -100,18 +100,18 @@
|
|
|
100
100
|
"unplugin-vue-markdown": "^29.2.0",
|
|
101
101
|
"untun": "^0.1.3",
|
|
102
102
|
"uqr": "^0.1.2",
|
|
103
|
-
"vite": "^7.
|
|
103
|
+
"vite": "^7.3.0",
|
|
104
104
|
"vite-plugin-inspect": "^11.3.3",
|
|
105
105
|
"vite-plugin-remote-assets": "^2.1.0",
|
|
106
106
|
"vite-plugin-static-copy": "^3.1.4",
|
|
107
107
|
"vite-plugin-vue-server-ref": "^1.0.0",
|
|
108
108
|
"vitefu": "^1.1.1",
|
|
109
|
-
"vue": "^3.5.
|
|
109
|
+
"vue": "^3.5.26",
|
|
110
110
|
"yaml": "^2.8.2",
|
|
111
111
|
"yargs": "^18.0.0",
|
|
112
|
-
"@slidev/client": "52.11.
|
|
113
|
-
"@slidev/parser": "52.11.
|
|
114
|
-
"@slidev/types": "52.11.
|
|
112
|
+
"@slidev/client": "52.11.1",
|
|
113
|
+
"@slidev/parser": "52.11.1",
|
|
114
|
+
"@slidev/types": "52.11.1"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|