@slidev/cli 0.37.0 → 0.38.0
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/{build-5M4DFC4V.js → build-GDFRNKG7.js} +13 -13
- package/dist/{build-W5TRXU2P.mjs → build-N6ZUPVQG.mjs} +4 -4
- package/dist/{chunk-JRB7BOBW.js → chunk-BQ7BP5DL.js} +66 -63
- package/dist/{chunk-CD72RFPC.mjs → chunk-D2NFFVC4.mjs} +9 -8
- package/dist/{chunk-VEKFQOM7.mjs → chunk-HLY2TTS3.mjs} +22 -19
- package/dist/{chunk-6G6VEIZI.js → chunk-NDMEWYLR.js} +141 -140
- package/dist/{chunk-N6L4BUFD.js → chunk-OVFYMGU6.js} +2 -2
- package/dist/{chunk-XNT34UVI.mjs → chunk-T5WFA52O.mjs} +2 -2
- package/dist/cli.js +35 -33
- package/dist/cli.mjs +10 -8
- package/dist/{export-2HDTZ4BF.mjs → export-BI2J2JAY.mjs} +13 -5
- package/dist/{export-YW4ZBY3A.js → export-KLTUGSHH.js} +18 -10
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +20 -20
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveImportPath,
|
|
10
10
|
stringifyMarkdownTokens,
|
|
11
11
|
toAtFS
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T5WFA52O.mjs";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
15
15
|
var require_fast_deep_equal = __commonJS({
|
|
@@ -63,7 +63,7 @@ import { existsSync, promises as fs } from "fs";
|
|
|
63
63
|
import { join } from "path";
|
|
64
64
|
import { uniq } from "@antfu/utils";
|
|
65
65
|
import { loadConfigFromFile, mergeConfig } from "vite";
|
|
66
|
-
async function getIndexHtml({ clientRoot, themeRoots, data, userRoot }) {
|
|
66
|
+
async function getIndexHtml({ clientRoot, themeRoots, addonRoots, data, userRoot }) {
|
|
67
67
|
var _a, _b;
|
|
68
68
|
let main = await fs.readFile(join(clientRoot, "index.html"), "utf-8");
|
|
69
69
|
let head = "";
|
|
@@ -71,6 +71,7 @@ async function getIndexHtml({ clientRoot, themeRoots, data, userRoot }) {
|
|
|
71
71
|
head += `<link rel="icon" href="${data.config.favicon}">`;
|
|
72
72
|
const roots = uniq([
|
|
73
73
|
...themeRoots,
|
|
74
|
+
...addonRoots,
|
|
74
75
|
userRoot
|
|
75
76
|
]);
|
|
76
77
|
for (const root of roots) {
|
|
@@ -129,7 +130,7 @@ function deepMerge(a, b, rootPath = "") {
|
|
|
129
130
|
});
|
|
130
131
|
return a;
|
|
131
132
|
}
|
|
132
|
-
async function loadSetups(roots, name, arg, initial, merge = true, accumulate
|
|
133
|
+
async function loadSetups(roots, name, arg, initial, merge = true, accumulate) {
|
|
133
134
|
let returns = initial;
|
|
134
135
|
for (const root of roots) {
|
|
135
136
|
const path = resolve(root, "setup", name);
|
|
@@ -272,30 +273,30 @@ import { uniq as uniq3 } from "@antfu/utils";
|
|
|
272
273
|
|
|
273
274
|
// ../client/package.json
|
|
274
275
|
var dependencies = {
|
|
275
|
-
"@antfu/utils": "^0.
|
|
276
|
+
"@antfu/utils": "^0.7.2",
|
|
276
277
|
"@slidev/parser": "workspace:*",
|
|
277
278
|
"@slidev/types": "workspace:*",
|
|
278
|
-
"@unocss/reset": "^0.
|
|
279
|
-
"@vueuse/core": "^9.
|
|
280
|
-
"@vueuse/head": "^0.
|
|
281
|
-
"@vueuse/math": "^9.
|
|
282
|
-
"@vueuse/motion": "^2.0.0-beta.
|
|
279
|
+
"@unocss/reset": "^0.47.6",
|
|
280
|
+
"@vueuse/core": "^9.6.0",
|
|
281
|
+
"@vueuse/head": "^1.0.22",
|
|
282
|
+
"@vueuse/math": "^9.6.0",
|
|
283
|
+
"@vueuse/motion": "^2.0.0-beta.26",
|
|
283
284
|
codemirror: "^5.65.5",
|
|
284
|
-
defu: "^6.1.
|
|
285
|
+
defu: "^6.1.1",
|
|
285
286
|
drauu: "^0.3.2",
|
|
286
287
|
"file-saver": "^2.0.5",
|
|
287
|
-
"js-base64": "^3.7.
|
|
288
|
+
"js-base64": "^3.7.3",
|
|
288
289
|
"js-yaml": "^4.1.0",
|
|
289
|
-
katex: "^0.16.
|
|
290
|
-
mermaid: "^9.2.
|
|
290
|
+
katex: "^0.16.4",
|
|
291
|
+
mermaid: "^9.2.2",
|
|
291
292
|
"monaco-editor": "^0.33.0",
|
|
292
293
|
nanoid: "^4.0.0",
|
|
293
|
-
prettier: "^2.
|
|
294
|
+
prettier: "^2.8.1",
|
|
294
295
|
recordrtc: "^5.6.2",
|
|
295
296
|
resolve: "^1.22.1",
|
|
296
|
-
unocss: "^0.
|
|
297
|
-
"vite-plugin-windicss": "^1.8.
|
|
298
|
-
vue: "^3.2.
|
|
297
|
+
unocss: "^0.47.6",
|
|
298
|
+
"vite-plugin-windicss": "^1.8.9",
|
|
299
|
+
vue: "^3.2.45",
|
|
299
300
|
"vue-router": "^4.1.6",
|
|
300
301
|
"vue-starport": "^0.3.0",
|
|
301
302
|
windicss: "^3.5.6"
|
|
@@ -357,7 +358,8 @@ var EXCLUDE = [
|
|
|
357
358
|
"unocss",
|
|
358
359
|
"mermaid",
|
|
359
360
|
"vite-plugin-windicss",
|
|
360
|
-
"vue-demi"
|
|
361
|
+
"vue-demi",
|
|
362
|
+
"vue"
|
|
361
363
|
];
|
|
362
364
|
function createConfigPlugin(options) {
|
|
363
365
|
return {
|
|
@@ -368,7 +370,8 @@ function createConfigPlugin(options) {
|
|
|
368
370
|
resolve: {
|
|
369
371
|
alias: {
|
|
370
372
|
"@slidev/client/": `${toAtFS(options.clientRoot)}/`
|
|
371
|
-
}
|
|
373
|
+
},
|
|
374
|
+
dedupe: ["vue"]
|
|
372
375
|
},
|
|
373
376
|
optimizeDeps: {
|
|
374
377
|
include: [
|