@slidev/cli 0.42.11 → 0.43.0-beta.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.
@@ -2,14 +2,14 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-UAV6RPFT.mjs";
6
- import "./chunk-6XVZLT3I.mjs";
7
- import "./chunk-MZBIET7Y.mjs";
8
- import "./chunk-KB3DQ2OE.mjs";
5
+ } from "./chunk-HA2YGJJG.mjs";
6
+ import "./chunk-JDHANZ37.mjs";
7
+ import "./chunk-ZEKM4EGL.mjs";
8
+ import "./chunk-QHOBBTS4.mjs";
9
9
 
10
10
  // node/build.ts
11
- import { join as join3, resolve as resolve3 } from "path";
12
- import http from "http";
11
+ import { join as join3, resolve as resolve3 } from "node:path";
12
+ import http from "node:http";
13
13
  import fs2 from "fs-extra";
14
14
  import { resolveConfig, build as viteBuild } from "vite";
15
15
  import connect from "connect";
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
722
722
  await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
723
723
  `, "utf-8");
724
724
  if ([true, "true", "auto"].includes(options.data.config.download)) {
725
- const { exportSlides, getExportOptions } = await import("./export-6G7WYT32.mjs");
725
+ const { exportSlides, getExportOptions } = await import("./export-I7B4PU6A.mjs");
726
726
  const port = 12445;
727
727
  const app = connect();
728
728
  const server = http.createServer(app);
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4O6GOAOCjs = require('./chunk-4O6GOAOC.js');
5
+ var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
6
6
  require('./chunk-KKGXM3XL.js');
7
- require('./chunk-34SGGZ4P.js');
8
- require('./chunk-QDKRARRU.js');
7
+ require('./chunk-JQHGZJGJ.js');
8
+ require('./chunk-YUG22S6W.js');
9
9
 
10
10
  // node/build.ts
11
11
  var _path = require('path');
@@ -651,16 +651,16 @@ async function build(options, viteConfig = {}, args) {
651
651
  let originalIndexHTML;
652
652
  if (_fsextra2.default.existsSync(indexPath))
653
653
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
654
- await _fsextra2.default.writeFile(indexPath, await _chunk4O6GOAOCjs.getIndexHtml.call(void 0, options), "utf-8");
654
+ await _fsextra2.default.writeFile(indexPath, await _chunkROTHRPSWjs.getIndexHtml.call(void 0, options), "utf-8");
655
655
  let config = void 0;
656
656
  try {
657
- const inlineConfig = await _chunk4O6GOAOCjs.mergeViteConfigs.call(void 0,
657
+ const inlineConfig = await _chunkROTHRPSWjs.mergeViteConfigs.call(void 0,
658
658
  options,
659
659
  viteConfig,
660
660
  {
661
661
  root: options.userRoot,
662
662
  plugins: [
663
- await _chunk4O6GOAOCjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
663
+ await _chunkROTHRPSWjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
664
664
  {
665
665
  name: "resolve-config",
666
666
  configResolved(_config) {
@@ -681,7 +681,7 @@ async function build(options, viteConfig = {}, args) {
681
681
  } else {
682
682
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
683
683
  await _vite.build.call(void 0,
684
- await _chunk4O6GOAOCjs.mergeViteConfigs.call(void 0,
684
+ await _chunkROTHRPSWjs.mergeViteConfigs.call(void 0,
685
685
  options,
686
686
  inlineConfig,
687
687
  {
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
722
722
  await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
723
723
  `, "utf-8");
724
724
  if ([true, "true", "auto"].includes(options.data.config.download)) {
725
- const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-BGMCS4F2.js"));
725
+ const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-MCALG7XD.js"));
726
726
  const port = 12445;
727
727
  const app = _connect2.default.call(void 0, );
728
728
  const server = _http2.default.createServer(app);