@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.
- package/dist/{build-ITLUPWNS.mjs → build-C2GYF6EU.mjs} +7 -7
- package/dist/{build-I34EOBVM.js → build-J2XECXHU.js} +8 -8
- package/dist/{chunk-TH7JXF42.js → chunk-CJW2UL6K.js} +88 -96
- package/dist/chunk-HA2YGJJG.mjs +4837 -0
- package/dist/{chunk-VPD6PH2L.mjs → chunk-HO75FTDI.mjs} +7 -7
- package/dist/{chunk-RSZHGGR3.js → chunk-J7PXWEZ7.js} +7 -7
- package/dist/{chunk-6XVZLT3I.mjs → chunk-JDHANZ37.mjs} +1 -1
- package/dist/{chunk-34SGGZ4P.js → chunk-JQHGZJGJ.js} +7 -10
- package/dist/{chunk-KB3DQ2OE.mjs → chunk-QHOBBTS4.mjs} +1 -31
- package/dist/chunk-ROTHRPSW.js +4837 -0
- package/dist/{chunk-QVVA2G2Y.mjs → chunk-Y2TFMOHQ.mjs} +39 -47
- package/dist/{chunk-QDKRARRU.js → chunk-YUG22S6W.js} +1 -31
- package/dist/{chunk-MZBIET7Y.mjs → chunk-ZEKM4EGL.mjs} +3 -6
- package/dist/cli.js +36 -35
- package/dist/cli.mjs +17 -16
- package/dist/{export-6G7WYT32.mjs → export-I7B4PU6A.mjs} +17 -22
- package/dist/{export-BGMCS4F2.js → export-MCALG7XD.js} +18 -23
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/{unocss-2T2KTWQ5.js → unocss-2DU67QXG.js} +6 -7
- package/dist/{unocss-ALFHEPHE.mjs → unocss-2UOAV4VT.mjs} +9 -10
- package/dist/windicss-FNELZNWD.js +9 -0
- package/dist/windicss-UVXCUIV4.mjs +9 -0
- package/package.json +7 -6
- package/template.md +1 -1
- package/dist/chunk-4O6GOAOC.js +0 -1634
- package/dist/chunk-UAV6RPFT.mjs +0 -1634
- package/dist/windicss-3HGYWXUJ.js +0 -9
- package/dist/windicss-TWSVDM4O.mjs +0 -9
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
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-
|
|
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
|
|
5
|
+
var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
|
|
6
6
|
require('./chunk-KKGXM3XL.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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);
|