@slidev-react/node 0.2.4 → 0.2.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.
Files changed (2) hide show
  1. package/dist/export.mjs +1 -1
  2. package/package.json +10 -3
package/dist/export.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { createSuccessResult } from "./context.mjs";
2
2
  import { parseExportArgs } from "./cli/exportArgs.mjs";
3
3
  import { startSlidesDevServer, stopSlidesDevServer } from "./dev.mjs";
4
- import { exportSlidesInBrowser } from "./exportBrowser.mjs";
5
4
  import { setTimeout } from "node:timers/promises";
6
5
  import { buildPrintExportUrl } from "@slidev-react/core/presentation/export/urls";
7
6
  //#region src/export.ts
@@ -41,6 +40,7 @@ async function exportSlidesArtifacts(options = {}) {
41
40
  });
42
41
  if (devServer) await waitForServer(exportOptions.baseUrl, DEV_SERVER_TIMEOUT_MS);
43
42
  try {
43
+ const { exportSlidesInBrowser } = await import("./exportBrowser.mjs");
44
44
  return await exportSlidesInBrowser({
45
45
  printUrl,
46
46
  format: exportOptions.format,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev-react/node",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "description": "Node-side command APIs for slidev-react authoring and build workflows",
6
6
  "license": "MIT",
@@ -23,7 +23,6 @@
23
23
  "dependencies": {
24
24
  "@mdx-js/mdx": "3.1.1",
25
25
  "@mdx-js/react": "3.1.1",
26
- "@playwright/test": "^1.58.2",
27
26
  "@vitejs/plugin-react": "^6.0.0",
28
27
  "react": "19.2.3",
29
28
  "rehype-katex": "7.0.1",
@@ -33,7 +32,15 @@
33
32
  "vite": "^8.0.0",
34
33
  "yaml": "2.8.2",
35
34
  "zod": "4.3.6",
36
- "@slidev-react/core": "0.2.4"
35
+ "@slidev-react/core": "0.2.6"
36
+ },
37
+ "peerDependencies": {
38
+ "@playwright/test": "^1.58.2"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@playwright/test": {
42
+ "optional": true
43
+ }
37
44
  },
38
45
  "publishConfig": {
39
46
  "access": "public"