@slidev/cli 0.42.5 → 0.42.7
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/bin/slidev.js +1 -0
- package/dist/{build-D4QSB7HD.js → build-FGRU7R5C.js} +8 -8
- package/dist/{build-7A4AKFCP.mjs → build-MQ5SJ6HF.mjs} +4 -4
- package/dist/{chunk-6ZL4B4HQ.js → chunk-34SGGZ4P.js} +5 -5
- package/dist/{chunk-YZMOU6XV.mjs → chunk-ACFLBCHI.mjs} +177 -154
- package/dist/{chunk-GPOP6RE3.js → chunk-ELRZS7XI.js} +49 -48
- package/dist/{chunk-L5QH2WZE.mjs → chunk-KB3DQ2OE.mjs} +1 -1
- package/dist/{chunk-Q3TKTGHS.mjs → chunk-LN5DOTNJ.mjs} +27 -26
- package/dist/{chunk-CIUEQ4TI.mjs → chunk-MZBIET7Y.mjs} +1 -1
- package/dist/{chunk-MJQETB73.js → chunk-QDKRARRU.js} +1 -1
- package/dist/{chunk-YI4ZV27K.js → chunk-RSZHGGR3.js} +4 -4
- package/dist/{chunk-X7P5WRYP.mjs → chunk-VPD6PH2L.mjs} +1 -1
- package/dist/{chunk-35XQHQN5.js → chunk-XWJGVGSP.js} +255 -232
- package/dist/cli.d.mts +2 -0
- package/dist/cli.js +63 -51
- package/dist/cli.mjs +23 -11
- package/dist/{export-KRS4L4HC.mjs → export-6G7WYT32.mjs} +11 -3
- package/dist/{export-PN4EOI4Z.js → export-BGMCS4F2.js} +13 -5
- package/dist/index.d.mts +100 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/{unocss-2CJUFE63.js → unocss-2T2KTWQ5.js} +1 -1
- package/dist/{unocss-ZLGTDCD7.mjs → unocss-ALFHEPHE.mjs} +1 -1
- package/dist/windicss-3HGYWXUJ.js +9 -0
- package/dist/{windicss-OSTDR2Z6.mjs → windicss-TWSVDM4O.mjs} +3 -3
- package/package.json +23 -22
- package/dist/windicss-YNIIPANV.js +0 -9
package/bin/slidev.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkELRZS7XIjs = require('./chunk-ELRZS7XI.js');
|
|
6
6
|
require('./chunk-KKGXM3XL.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-34SGGZ4P.js');
|
|
8
|
+
require('./chunk-QDKRARRU.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 _chunkELRZS7XIjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
655
655
|
let config = void 0;
|
|
656
656
|
try {
|
|
657
|
-
const inlineConfig = await
|
|
657
|
+
const inlineConfig = await _chunkELRZS7XIjs.mergeViteConfigs.call(void 0,
|
|
658
658
|
options,
|
|
659
659
|
viteConfig,
|
|
660
660
|
{
|
|
661
661
|
root: options.userRoot,
|
|
662
662
|
plugins: [
|
|
663
|
-
await
|
|
663
|
+
await _chunkELRZS7XIjs.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 _chunkELRZS7XIjs.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-BGMCS4F2.js"));
|
|
726
726
|
const port = 12445;
|
|
727
727
|
const app = _connect2.default.call(void 0, );
|
|
728
728
|
const server = _http2.default.createServer(app);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LN5DOTNJ.mjs";
|
|
6
6
|
import "./chunk-6XVZLT3I.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-MZBIET7Y.mjs";
|
|
8
|
+
import "./chunk-KB3DQ2OE.mjs";
|
|
9
9
|
|
|
10
10
|
// node/build.ts
|
|
11
11
|
import { join as join3, resolve as resolve3 } from "path";
|
|
@@ -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-6G7WYT32.mjs");
|
|
726
726
|
const port = 12445;
|
|
727
727
|
const app = connect();
|
|
728
728
|
const server = http.createServer(app);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQDKRARRUjs = require('./chunk-QDKRARRU.js');
|
|
4
4
|
|
|
5
5
|
// node/utils.ts
|
|
6
6
|
var _path = require('path');
|
|
@@ -20,11 +20,11 @@ function resolveImportPath(importName, ensure = false) {
|
|
|
20
20
|
}
|
|
21
21
|
if (_isinstalledglobally2.default) {
|
|
22
22
|
try {
|
|
23
|
-
return
|
|
23
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
|
|
24
24
|
} catch (e2) {
|
|
25
25
|
}
|
|
26
26
|
try {
|
|
27
|
-
return
|
|
27
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
|
|
28
28
|
} catch (e3) {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -38,11 +38,11 @@ function resolveGlobalImportPath(importName) {
|
|
|
38
38
|
} catch (e4) {
|
|
39
39
|
}
|
|
40
40
|
try {
|
|
41
|
-
return
|
|
41
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
|
|
42
42
|
} catch (e5) {
|
|
43
43
|
}
|
|
44
44
|
try {
|
|
45
|
-
return
|
|
45
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
|
|
46
46
|
} catch (e6) {
|
|
47
47
|
}
|
|
48
48
|
throw new Error(`Failed to resolve global package "${importName}"`);
|