@slidev/cli 0.40.6 → 0.40.9
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-LXXDJIKQ.js → build-5W6DNCAQ.js} +6 -6
- package/dist/{build-ABEUVCF3.mjs → build-6ZRWH4B7.mjs} +2 -2
- package/dist/{chunk-MKAMV2EC.mjs → chunk-R4N7XP7M.mjs} +2153 -5033
- package/dist/{chunk-RQPNLNE7.js → chunk-SWMLPUVG.js} +2156 -5036
- package/dist/{chunk-IBT35HXF.mjs → chunk-YVAD7SJ5.mjs} +7 -7
- package/dist/{chunk-IZ3FTOWY.js → chunk-YZTX6FDH.js} +7 -7
- package/dist/cli.js +30 -30
- package/dist/cli.mjs +5 -5
- package/dist/{export-INNI35CW.js → export-GTPZJWVE.js} +2 -1
- package/dist/{export-N3YCMXVO.mjs → export-KPPDUO6Z.mjs} +1 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYZTX6FDHjs = require('./chunk-YZTX6FDH.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
|
|
649
|
+
await _fsextra2.default.writeFile(indexPath, await _chunkYZTX6FDHjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
650
650
|
let config = void 0;
|
|
651
651
|
try {
|
|
652
|
-
const inlineConfig = await
|
|
652
|
+
const inlineConfig = await _chunkYZTX6FDHjs.mergeViteConfigs.call(void 0,
|
|
653
653
|
options,
|
|
654
654
|
viteConfig,
|
|
655
655
|
{
|
|
656
656
|
root: options.userRoot,
|
|
657
657
|
plugins: [
|
|
658
|
-
await
|
|
658
|
+
await _chunkYZTX6FDHjs.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
|
|
679
|
+
await _chunkYZTX6FDHjs.mergeViteConfigs.call(void 0,
|
|
680
680
|
options,
|
|
681
681
|
inlineConfig,
|
|
682
682
|
{
|
|
@@ -717,7 +717,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
717
717
|
await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
718
718
|
`, "utf-8");
|
|
719
719
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
720
|
-
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-
|
|
720
|
+
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-GTPZJWVE.js"));
|
|
721
721
|
const port = 12445;
|
|
722
722
|
const app = _connect2.default.call(void 0, );
|
|
723
723
|
const server = _http2.default.createServer(app);
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YVAD7SJ5.mjs";
|
|
6
6
|
import "./chunk-CTG3GV2W.mjs";
|
|
7
7
|
|
|
8
8
|
// node/build.ts
|
|
@@ -717,7 +717,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
717
717
|
await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
718
718
|
`, "utf-8");
|
|
719
719
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
720
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
720
|
+
const { exportSlides, getExportOptions } = await import("./export-KPPDUO6Z.mjs");
|
|
721
721
|
const port = 12445;
|
|
722
722
|
const app = connect();
|
|
723
723
|
const server = http.createServer(app);
|