@slidev/cli 0.40.9 → 0.40.11

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYZTX6FDHjs = require('./chunk-YZTX6FDH.js');
5
+ var _chunkNLLGUORFjs = require('./chunk-NLLGUORF.js');
6
6
  require('./chunk-GE7W2DBE.js');
7
7
 
8
8
  // node/build.ts
@@ -646,16 +646,16 @@ async function build(options, viteConfig = {}, args) {
646
646
  let originalIndexHTML;
647
647
  if (_fsextra2.default.existsSync(indexPath))
648
648
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
649
- await _fsextra2.default.writeFile(indexPath, await _chunkYZTX6FDHjs.getIndexHtml.call(void 0, options), "utf-8");
649
+ await _fsextra2.default.writeFile(indexPath, await _chunkNLLGUORFjs.getIndexHtml.call(void 0, options), "utf-8");
650
650
  let config = void 0;
651
651
  try {
652
- const inlineConfig = await _chunkYZTX6FDHjs.mergeViteConfigs.call(void 0,
652
+ const inlineConfig = await _chunkNLLGUORFjs.mergeViteConfigs.call(void 0,
653
653
  options,
654
654
  viteConfig,
655
655
  {
656
656
  root: options.userRoot,
657
657
  plugins: [
658
- await _chunkYZTX6FDHjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
658
+ await _chunkNLLGUORFjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
659
659
  {
660
660
  name: "resolve-config",
661
661
  configResolved(_config) {
@@ -676,7 +676,7 @@ async function build(options, viteConfig = {}, args) {
676
676
  } else {
677
677
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
678
678
  await _vite.build.call(void 0,
679
- await _chunkYZTX6FDHjs.mergeViteConfigs.call(void 0,
679
+ await _chunkNLLGUORFjs.mergeViteConfigs.call(void 0,
680
680
  options,
681
681
  inlineConfig,
682
682
  {
@@ -2,7 +2,7 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-YVAD7SJ5.mjs";
5
+ } from "./chunk-4DVLHT55.mjs";
6
6
  import "./chunk-CTG3GV2W.mjs";
7
7
 
8
8
  // node/build.ts
@@ -206,6 +206,7 @@ import RemoteAssets, { DefaultRules } from "vite-plugin-remote-assets";
206
206
  import ServerRef from "vite-plugin-vue-server-ref";
207
207
  import { notNullish as notNullish2 } from "@antfu/utils";
208
208
  import Inspect from "vite-plugin-inspect";
209
+ import { viteStaticCopy } from "vite-plugin-static-copy";
209
210
 
210
211
  // node/drawings.ts
211
212
  import { basename, dirname as dirname2, join as join2, resolve as resolve3 } from "path";
@@ -269,10 +270,10 @@ var dependencies = {
269
270
  "@antfu/utils": "^0.7.2",
270
271
  "@slidev/parser": "workspace:*",
271
272
  "@slidev/types": "workspace:*",
272
- "@unocss/reset": "^0.51.0",
273
- "@vueuse/core": "^9.13.0",
274
- "@vueuse/head": "^1.1.23",
275
- "@vueuse/math": "^9.13.0",
273
+ "@unocss/reset": "^0.51.4",
274
+ "@vueuse/core": "^10.0.2",
275
+ "@vueuse/head": "^1.1.26",
276
+ "@vueuse/math": "^10.0.2",
276
277
  "@vueuse/motion": "^2.0.0-beta.27",
277
278
  codemirror: "^5.65.5",
278
279
  defu: "^6.1.2",
@@ -281,14 +282,14 @@ var dependencies = {
281
282
  "fuse.js": "^6.6.2",
282
283
  "js-base64": "^3.7.5",
283
284
  "js-yaml": "^4.1.0",
284
- katex: "^0.16.4",
285
+ katex: "^0.16.6",
285
286
  mermaid: "^10.1.0",
286
287
  "monaco-editor": "^0.37.1",
287
288
  nanoid: "^4.0.2",
288
289
  prettier: "^2.8.7",
289
290
  recordrtc: "^5.6.2",
290
291
  resolve: "^1.22.2",
291
- unocss: "^0.51.0",
292
+ unocss: "^0.51.4",
292
293
  "vite-plugin-windicss": "^1.8.10",
293
294
  vue: "^3.2.47",
294
295
  "vue-router": "^4.1.6",
@@ -1692,6 +1693,14 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1692
1693
  writeDrawings(options, patch ?? data);
1693
1694
  }
1694
1695
  }),
1696
+ viteStaticCopy({
1697
+ targets: themeRoots.map((i) => {
1698
+ return {
1699
+ src: `${i}/public/*`,
1700
+ dest: "theme"
1701
+ };
1702
+ })
1703
+ }),
1695
1704
  createConfigPlugin(options),
1696
1705
  createClientSetupPlugin(options),
1697
1706
  createMonacoTypesLoader(),