@slidev/cli 0.48.0-beta.5 → 0.48.0-beta.6

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,7 +2,7 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-U44GKKNH.mjs";
5
+ } from "./chunk-MZGZ35RT.mjs";
6
6
  import "./chunk-O6TYYGU6.mjs";
7
7
  import {
8
8
  findPkgRoot
@@ -2496,7 +2496,7 @@ var require_semver2 = __commonJS({
2496
2496
  });
2497
2497
 
2498
2498
  // package.json
2499
- var version = "0.48.0-beta.5";
2499
+ var version = "0.48.0-beta.6";
2500
2500
 
2501
2501
  // node/common.ts
2502
2502
  import { existsSync, promises as fs } from "node:fs";
@@ -2787,8 +2787,7 @@ function createSlidesLoader({ data, clientRoot, roots, remote, mode }, pluginOpt
2787
2787
  if (type === "json" && req.method === "POST") {
2788
2788
  const body = await getBodyJson(req);
2789
2789
  const slide = data.slides[idx];
2790
- const onlyNoteChanged = Object.keys(body).length === 2 && "note" in body && body.raw === null;
2791
- if (!onlyNoteChanged)
2790
+ if (body.content && body.content !== slide.source.content)
2792
2791
  hmrPages.add(idx);
2793
2792
  Object.assign(slide.source, body);
2794
2793
  parser.prettifySlide(slide.source);
@@ -4244,7 +4243,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
4244
4243
  "components",
4245
4244
  join7(process3.cwd(), "components")
4246
4245
  ],
4247
- include: [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/, /\.md$/],
4246
+ include: [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/, /\.md$/, /\.md\?vue/],
4248
4247
  exclude: [],
4249
4248
  resolvers: [
4250
4249
  IconsResolver({
@@ -4,7 +4,7 @@ import {
4
4
  mergeViteConfigs,
5
5
  require_semver,
6
6
  version
7
- } from "./chunk-U44GKKNH.mjs";
7
+ } from "./chunk-MZGZ35RT.mjs";
8
8
  import {
9
9
  createResolver,
10
10
  getRoots,
package/dist/cli.mjs CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  resolveAddons,
6
6
  resolveOptions,
7
7
  resolveTheme
8
- } from "./chunk-CV7O37IO.mjs";
8
+ } from "./chunk-WV65JLWC.mjs";
9
9
  import {
10
10
  version
11
- } from "./chunk-U44GKKNH.mjs";
11
+ } from "./chunk-MZGZ35RT.mjs";
12
12
  import {
13
13
  loadSetups
14
14
  } from "./chunk-O6TYYGU6.mjs";
@@ -271,7 +271,7 @@ cli.command(
271
271
  }).strict().help(),
272
272
  async (args) => {
273
273
  const { entry, theme, watch, base, download, out, inspect } = args;
274
- const { build } = await import("./build-C6G7F24X.mjs");
274
+ const { build } = await import("./build-JXQZ3YBD.mjs");
275
275
  for (const entryFile of entry) {
276
276
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
277
277
  if (download && !options.data.config.download)
package/dist/index.mjs CHANGED
@@ -2,10 +2,10 @@ import {
2
2
  createServer,
3
3
  parser,
4
4
  resolveOptions
5
- } from "./chunk-CV7O37IO.mjs";
5
+ } from "./chunk-WV65JLWC.mjs";
6
6
  import {
7
7
  ViteSlidevPlugin
8
- } from "./chunk-U44GKKNH.mjs";
8
+ } from "./chunk-MZGZ35RT.mjs";
9
9
  import "./chunk-O6TYYGU6.mjs";
10
10
  import "./chunk-7HOZGSL4.mjs";
11
11
  import "./chunk-BXO7ZPPU.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.48.0-beta.5",
3
+ "version": "0.48.0-beta.6",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -104,9 +104,9 @@
104
104
  "vitefu": "^0.2.5",
105
105
  "vue": "^3.4.19",
106
106
  "yargs": "^17.7.2",
107
- "@slidev/client": "0.48.0-beta.5",
108
- "@slidev/parser": "0.48.0-beta.5",
109
- "@slidev/types": "0.48.0-beta.5"
107
+ "@slidev/parser": "0.48.0-beta.6",
108
+ "@slidev/client": "0.48.0-beta.6",
109
+ "@slidev/types": "0.48.0-beta.6"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hedgedoc/markdown-it-plugins": "^2.1.4",