@slidev/cli 0.38.3 → 0.38.5
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-MTAKMNAQ.js → build-MNMMWCV6.js} +6 -6
- package/dist/{build-54H7Z3PS.mjs → build-NROT64YL.mjs} +2 -2
- package/dist/{chunk-CGI3XOIB.js → chunk-FENLKXMB.js} +518 -398
- package/dist/{chunk-ES6ZBV6W.mjs → chunk-MDHB5JSE.mjs} +28 -14
- package/dist/{chunk-EN3EFCLR.mjs → chunk-RWZQGJHC.mjs} +522 -402
- package/dist/{chunk-RJUDK22K.js → chunk-SJ7FI34E.js} +28 -14
- package/dist/cli.js +30 -30
- package/dist/cli.mjs +7 -7
- package/dist/{export-JGJTLG7B.mjs → export-2OSN6D4K.mjs} +25 -6
- package/dist/{export-OIZT2CQS.js → export-RNJ27D27.js} +25 -6
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +14 -12
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSJ7FI34Ejs = require('./chunk-SJ7FI34E.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -655,16 +655,16 @@ async function build(options, viteConfig = {}) {
|
|
|
655
655
|
let originalIndexHTML;
|
|
656
656
|
if (_fsextra2.default.existsSync(indexPath))
|
|
657
657
|
originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
|
|
658
|
-
await _fsextra2.default.writeFile(indexPath, await
|
|
658
|
+
await _fsextra2.default.writeFile(indexPath, await _chunkSJ7FI34Ejs.getIndexHtml.call(void 0, options), "utf-8");
|
|
659
659
|
let config = void 0;
|
|
660
660
|
try {
|
|
661
|
-
const inlineConfig = await
|
|
661
|
+
const inlineConfig = await _chunkSJ7FI34Ejs.mergeViteConfigs.call(void 0,
|
|
662
662
|
options,
|
|
663
663
|
viteConfig,
|
|
664
664
|
{
|
|
665
665
|
root: options.userRoot,
|
|
666
666
|
plugins: [
|
|
667
|
-
await
|
|
667
|
+
await _chunkSJ7FI34Ejs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
|
|
668
668
|
{
|
|
669
669
|
name: "resolve-config",
|
|
670
670
|
configResolved(_config) {
|
|
@@ -685,7 +685,7 @@ async function build(options, viteConfig = {}) {
|
|
|
685
685
|
} else {
|
|
686
686
|
console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
|
|
687
687
|
await _vite.build.call(void 0,
|
|
688
|
-
await
|
|
688
|
+
await _chunkSJ7FI34Ejs.mergeViteConfigs.call(void 0,
|
|
689
689
|
options,
|
|
690
690
|
inlineConfig,
|
|
691
691
|
{
|
|
@@ -725,7 +725,7 @@ async function build(options, viteConfig = {}) {
|
|
|
725
725
|
await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
726
726
|
`, "utf-8");
|
|
727
727
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
728
|
-
const { exportSlides } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "./export-
|
|
728
|
+
const { exportSlides } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "./export-RNJ27D27.js")));
|
|
729
729
|
const port = 12445;
|
|
730
730
|
const app = _connect2.default.call(void 0, );
|
|
731
731
|
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-MDHB5JSE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__require,
|
|
8
8
|
__toESM,
|
|
@@ -725,7 +725,7 @@ async function build(options, viteConfig = {}) {
|
|
|
725
725
|
await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
726
726
|
`, "utf-8");
|
|
727
727
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
728
|
-
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-
|
|
728
|
+
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-2OSN6D4K.mjs")));
|
|
729
729
|
const port = 12445;
|
|
730
730
|
const app = connect();
|
|
731
731
|
const server = http.createServer(app);
|