@slidev/cli 0.35.5 → 0.35.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.
package/dist/cli.mjs CHANGED
@@ -6,16 +6,16 @@ import {
6
6
  resolveOptions,
7
7
  resolveThemeName,
8
8
  version
9
- } from "./chunk-SWNG6UPD.mjs";
9
+ } from "./chunk-3VPTNK23.mjs";
10
10
  import {
11
11
  require_fast_deep_equal
12
- } from "./chunk-QPGEWKWZ.mjs";
12
+ } from "./chunk-IY7QSYZ2.mjs";
13
13
  import {
14
14
  __dirname,
15
15
  __require,
16
16
  __toESM,
17
17
  init_esm_shims
18
- } from "./chunk-GVA336JI.mjs";
18
+ } from "./chunk-57E5R3IA.mjs";
19
19
 
20
20
  // node/cli.ts
21
21
  init_esm_shims();
@@ -40,261 +40,298 @@ var CONFIG_RESTART_FIELDS = [
40
40
  "css"
41
41
  ];
42
42
  var cli = yargs.scriptName("slidev").usage("$0 [args]").version(version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
43
- cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
44
- alias: "p",
45
- type: "number",
46
- describe: "port"
47
- }).option("open", {
48
- alias: "o",
49
- default: false,
50
- type: "boolean",
51
- describe: "open in browser"
52
- }).option("remote", {
53
- type: "string",
54
- describe: "listen public host and enable remote control"
55
- }).option("log", {
56
- default: "warn",
57
- type: "string",
58
- choices: ["error", "warn", "info", "silent"],
59
- describe: "log level"
60
- }).option("force", {
61
- alias: "f",
62
- default: false,
63
- type: "boolean",
64
- describe: "force the optimizer to ignore the cache and re-bundle "
65
- }).strict().help(), async ({ entry, theme, port: userPort, open, log, remote, force }) => {
66
- if (!fs.existsSync(entry) && !entry.endsWith(".md"))
67
- entry = `${entry}.md`;
68
- if (!fs.existsSync(entry)) {
69
- const { create } = await prompts({
70
- name: "create",
71
- type: "confirm",
72
- initial: "Y",
73
- message: `Entry file ${yellow(`"${entry}"`)} does not exist, do you want to create it?`
74
- });
75
- if (create)
76
- await fs.copyFile(path.resolve(__dirname, "../template.md"), entry);
77
- else
78
- process.exit(0);
79
- }
80
- let server;
81
- let port = 3030;
82
- async function initServer() {
83
- if (server)
84
- await server.close();
85
- const options = await resolveOptions({ entry, remote, theme }, "dev");
86
- port = userPort || await findFreePort(3030);
87
- server = await createServer(options, {
88
- server: {
89
- port,
90
- strictPort: true,
91
- open,
92
- host: remote !== void 0 ? "0.0.0.0" : "localhost",
93
- force
94
- },
95
- logLevel: log
96
- }, {
97
- onDataReload(newData, data) {
98
- if (!theme && resolveThemeName(newData.config.theme) !== resolveThemeName(data.config.theme)) {
99
- console.log(yellow("\n restarting on theme change\n"));
100
- initServer();
101
- } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
102
- console.log(yellow("\n restarting on config change\n"));
43
+ cli.command(
44
+ "* [entry]",
45
+ "Start a local server for Slidev",
46
+ (args) => commonOptions(args).option("port", {
47
+ alias: "p",
48
+ type: "number",
49
+ describe: "port"
50
+ }).option("open", {
51
+ alias: "o",
52
+ default: false,
53
+ type: "boolean",
54
+ describe: "open in browser"
55
+ }).option("remote", {
56
+ type: "string",
57
+ describe: "listen public host and enable remote control"
58
+ }).option("log", {
59
+ default: "warn",
60
+ type: "string",
61
+ choices: ["error", "warn", "info", "silent"],
62
+ describe: "log level"
63
+ }).option("force", {
64
+ alias: "f",
65
+ default: false,
66
+ type: "boolean",
67
+ describe: "force the optimizer to ignore the cache and re-bundle "
68
+ }).strict().help(),
69
+ async ({ entry, theme, port: userPort, open, log, remote, force }) => {
70
+ if (!fs.existsSync(entry) && !entry.endsWith(".md"))
71
+ entry = `${entry}.md`;
72
+ if (!fs.existsSync(entry)) {
73
+ const { create } = await prompts({
74
+ name: "create",
75
+ type: "confirm",
76
+ initial: "Y",
77
+ message: `Entry file ${yellow(`"${entry}"`)} does not exist, do you want to create it?`
78
+ });
79
+ if (create)
80
+ await fs.copyFile(path.resolve(__dirname, "../template.md"), entry);
81
+ else
82
+ process.exit(0);
83
+ }
84
+ let server;
85
+ let port = 3030;
86
+ async function initServer() {
87
+ if (server)
88
+ await server.close();
89
+ const options = await resolveOptions({ entry, remote, theme }, "dev");
90
+ port = userPort || await findFreePort(3030);
91
+ server = await createServer(
92
+ options,
93
+ {
94
+ server: {
95
+ port,
96
+ strictPort: true,
97
+ open,
98
+ host: remote !== void 0 ? "0.0.0.0" : "localhost",
99
+ force
100
+ },
101
+ logLevel: log
102
+ },
103
+ {
104
+ onDataReload(newData, data) {
105
+ if (!theme && resolveThemeName(newData.config.theme) !== resolveThemeName(data.config.theme)) {
106
+ console.log(yellow("\n restarting on theme change\n"));
107
+ initServer();
108
+ } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
109
+ console.log(yellow("\n restarting on config change\n"));
110
+ initServer();
111
+ }
112
+ }
113
+ }
114
+ );
115
+ await server.listen();
116
+ printInfo(options, port, remote);
117
+ }
118
+ const SHORTCUTS = [
119
+ {
120
+ name: "r",
121
+ fullname: "restart",
122
+ action() {
103
123
  initServer();
104
124
  }
125
+ },
126
+ {
127
+ name: "o",
128
+ fullname: "open",
129
+ action() {
130
+ openBrowser(`http://localhost:${port}`);
131
+ }
132
+ },
133
+ {
134
+ name: "e",
135
+ fullname: "edit",
136
+ action() {
137
+ exec(`code "${entry}"`);
138
+ }
105
139
  }
106
- });
107
- await server.listen();
108
- printInfo(options, port, remote);
109
- }
110
- const SHORTCUTS = [
111
- {
112
- name: "r",
113
- fullname: "restart",
114
- action() {
115
- initServer();
116
- }
117
- },
118
- {
119
- name: "o",
120
- fullname: "open",
121
- action() {
122
- openBrowser(`http://localhost:${port}`);
123
- }
124
- },
125
- {
126
- name: "e",
127
- fullname: "edit",
128
- action() {
129
- exec(`code "${entry}"`);
130
- }
131
- }
132
- ];
133
- function bindShortcut() {
134
- process.stdin.resume();
135
- process.stdin.setEncoding("utf8");
136
- readline.emitKeypressEvents(process.stdin);
137
- if (process.stdin.isTTY)
138
- process.stdin.setRawMode(true);
139
- process.stdin.on("keypress", (str, key) => {
140
- if (key.ctrl && key.name === "c") {
141
- process.exit();
142
- } else {
143
- const [sh] = SHORTCUTS.filter((item) => item.name === str);
144
- if (sh) {
145
- try {
146
- sh.action();
147
- } catch (err) {
148
- console.error(`Failed to execute shortcut ${sh.fullname}`, err);
140
+ ];
141
+ function bindShortcut() {
142
+ process.stdin.resume();
143
+ process.stdin.setEncoding("utf8");
144
+ readline.emitKeypressEvents(process.stdin);
145
+ if (process.stdin.isTTY)
146
+ process.stdin.setRawMode(true);
147
+ process.stdin.on("keypress", (str, key) => {
148
+ if (key.ctrl && key.name === "c") {
149
+ process.exit();
150
+ } else {
151
+ const [sh] = SHORTCUTS.filter((item) => item.name === str);
152
+ if (sh) {
153
+ try {
154
+ sh.action();
155
+ } catch (err) {
156
+ console.error(`Failed to execute shortcut ${sh.fullname}`, err);
157
+ }
149
158
  }
150
159
  }
160
+ });
161
+ }
162
+ initServer();
163
+ bindShortcut();
164
+ }
165
+ );
166
+ cli.command(
167
+ "build [entry]",
168
+ "Build hostable SPA",
169
+ (args) => commonOptions(args).option("watch", {
170
+ alias: "w",
171
+ default: false,
172
+ describe: "build watch"
173
+ }).option("out", {
174
+ alias: "o",
175
+ type: "string",
176
+ default: "dist",
177
+ describe: "output dir"
178
+ }).option("base", {
179
+ type: "string",
180
+ describe: "output base"
181
+ }).option("download", {
182
+ alias: "d",
183
+ type: "boolean",
184
+ describe: "allow download as PDF"
185
+ }).strict().help(),
186
+ async ({ entry, theme, watch, base, download, out }) => {
187
+ const { build } = await Promise.resolve().then(() => __toESM(__require("./build-JJPJN7L3.mjs")));
188
+ const options = await resolveOptions({ entry, theme }, "build");
189
+ if (download && !options.data.config.download)
190
+ options.data.config.download = download;
191
+ printInfo(options);
192
+ await build(options, {
193
+ base,
194
+ build: {
195
+ watch: watch ? {} : void 0,
196
+ outDir: out
151
197
  }
152
198
  });
153
199
  }
154
- initServer();
155
- bindShortcut();
156
- });
157
- cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args).option("watch", {
158
- alias: "w",
159
- default: false,
160
- describe: "build watch"
161
- }).option("out", {
162
- alias: "o",
163
- type: "string",
164
- default: "dist",
165
- describe: "output dir"
166
- }).option("base", {
167
- type: "string",
168
- describe: "output base"
169
- }).option("download", {
170
- alias: "d",
171
- type: "boolean",
172
- describe: "allow download as PDF"
173
- }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
174
- const { build } = await Promise.resolve().then(() => __toESM(__require("./build-RBCFVFDG.mjs")));
175
- const options = await resolveOptions({ entry, theme }, "build");
176
- if (download && !options.data.config.download)
177
- options.data.config.download = download;
178
- printInfo(options);
179
- await build(options, {
180
- base,
181
- build: {
182
- watch: watch ? {} : void 0,
183
- outDir: out
184
- }
185
- });
186
- });
187
- cli.command("format [entry]", "Format the markdown file", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
188
- const data = await parser.load(entry);
189
- parser.prettify(data);
190
- await parser.save(data);
191
- });
192
- cli.command("theme [subcommand]", "Theme related operations", (command) => {
193
- return command.command("eject", "Eject current theme into local file system", (args) => commonOptions(args).option("dir", {
194
- type: "string",
195
- default: "theme"
196
- }), async ({ entry, dir, theme: themeInput }) => {
200
+ );
201
+ cli.command(
202
+ "format [entry]",
203
+ "Format the markdown file",
204
+ (args) => commonOptions(args).strict().help(),
205
+ async ({ entry }) => {
197
206
  const data = await parser.load(entry);
198
- const theme = resolveThemeName(themeInput || data.config.theme);
199
- if (theme === "none") {
200
- console.error('Can not eject theme "none"');
201
- process.exit(1);
202
- }
203
- if (isPath(theme)) {
204
- console.error("Theme is already ejected");
205
- process.exit(1);
206
- }
207
- const roots = getThemeRoots(theme, entry);
208
- if (!roots.length) {
209
- console.error(`Does not found theme "${theme}"`);
210
- process.exit(1);
211
- }
212
- const root = roots[0];
213
- await fs.copy(root, path.resolve(dir), {
214
- filter: (i) => !/node_modules|.git/.test(path.relative(root, i))
215
- });
216
- const dirPath = `./${dir}`;
217
- data.slides[0].frontmatter.theme = dirPath;
218
- data.slides[0].raw = null;
207
+ parser.prettify(data);
219
208
  await parser.save(data);
220
- console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
221
- });
222
- }, () => {
223
- cli.showHelp();
224
- process.exit(1);
225
- });
226
- cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(args).option("output", {
227
- type: "string",
228
- describe: "path to the output"
229
- }).option("format", {
230
- default: "pdf",
231
- type: "string",
232
- choices: ["pdf", "png", "md"],
233
- describe: "output format"
234
- }).option("timeout", {
235
- default: 3e4,
236
- type: "number",
237
- describe: "timeout for rendering the print page"
238
- }).option("range", {
239
- type: "string",
240
- describe: 'page ranges to export, for example "1,4-5,6"'
241
- }).option("dark", {
242
- default: false,
243
- type: "boolean",
244
- describe: "export as dark theme"
245
- }).option("with-clicks", {
246
- alias: "c",
247
- default: false,
248
- type: "boolean",
249
- describe: "export pages for every clicks"
250
- }).option("executable-path", {
251
- type: "string",
252
- describe: "executable to override playwright bundled browser"
253
- }).strict().help(), async ({
254
- entry,
255
- theme,
256
- output,
257
- format,
258
- timeout,
259
- range,
260
- dark,
261
- "with-clicks": withClicks,
262
- "executable-path": executablePath
263
- }) => {
264
- process.env.NODE_ENV = "production";
265
- const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-U7F6XGP6.mjs")));
266
- const port = await findFreePort(12445);
267
- const options = await resolveOptions({ entry, theme }, "build");
268
- output = output || options.data.config.exportFilename || `${path.basename(entry, ".md")}-export`;
269
- const server = await createServer(options, {
270
- server: { port },
271
- clearScreen: false
272
- });
273
- await server.listen(port);
274
- printInfo(options);
275
- parser.filterDisabled(options.data);
276
- const width = options.data.config.canvasWidth;
277
- const height = Math.round(width / options.data.config.aspectRatio);
278
- output = await exportSlides({
279
- port,
280
- slides: options.data.slides,
281
- total: options.data.slides.length,
282
- range,
283
- format,
209
+ }
210
+ );
211
+ cli.command(
212
+ "theme [subcommand]",
213
+ "Theme related operations",
214
+ (command) => {
215
+ return command.command(
216
+ "eject",
217
+ "Eject current theme into local file system",
218
+ (args) => commonOptions(args).option("dir", {
219
+ type: "string",
220
+ default: "theme"
221
+ }),
222
+ async ({ entry, dir, theme: themeInput }) => {
223
+ const data = await parser.load(entry);
224
+ const theme = resolveThemeName(themeInput || data.config.theme);
225
+ if (theme === "none") {
226
+ console.error('Can not eject theme "none"');
227
+ process.exit(1);
228
+ }
229
+ if (isPath(theme)) {
230
+ console.error("Theme is already ejected");
231
+ process.exit(1);
232
+ }
233
+ const roots = getThemeRoots(theme, entry);
234
+ if (!roots.length) {
235
+ console.error(`Does not found theme "${theme}"`);
236
+ process.exit(1);
237
+ }
238
+ const root = roots[0];
239
+ await fs.copy(root, path.resolve(dir), {
240
+ filter: (i) => !/node_modules|.git/.test(path.relative(root, i))
241
+ });
242
+ const dirPath = `./${dir}`;
243
+ data.slides[0].frontmatter.theme = dirPath;
244
+ data.slides[0].raw = null;
245
+ await parser.save(data);
246
+ console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
247
+ }
248
+ );
249
+ },
250
+ () => {
251
+ cli.showHelp();
252
+ process.exit(1);
253
+ }
254
+ );
255
+ cli.command(
256
+ "export [entry]",
257
+ "Export slides to PDF",
258
+ (args) => commonOptions(args).option("output", {
259
+ type: "string",
260
+ describe: "path to the output"
261
+ }).option("format", {
262
+ default: "pdf",
263
+ type: "string",
264
+ choices: ["pdf", "png", "md"],
265
+ describe: "output format"
266
+ }).option("timeout", {
267
+ default: 3e4,
268
+ type: "number",
269
+ describe: "timeout for rendering the print page"
270
+ }).option("range", {
271
+ type: "string",
272
+ describe: 'page ranges to export, for example "1,4-5,6"'
273
+ }).option("dark", {
274
+ default: false,
275
+ type: "boolean",
276
+ describe: "export as dark theme"
277
+ }).option("with-clicks", {
278
+ alias: "c",
279
+ default: false,
280
+ type: "boolean",
281
+ describe: "export pages for every clicks"
282
+ }).option("executable-path", {
283
+ type: "string",
284
+ describe: "executable to override playwright bundled browser"
285
+ }).strict().help(),
286
+ async ({
287
+ entry,
288
+ theme,
284
289
  output,
290
+ format,
285
291
  timeout,
292
+ range,
286
293
  dark,
287
- routerMode: options.data.config.routerMode,
288
- width,
289
- height,
290
- withClicks,
291
- executablePath
292
- });
293
- console.log(`${green(" \u2713 ")}${dim("exported to ")}./${output}
294
+ "with-clicks": withClicks,
295
+ "executable-path": executablePath
296
+ }) => {
297
+ process.env.NODE_ENV = "production";
298
+ const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-I2KYMDHO.mjs")));
299
+ const port = await findFreePort(12445);
300
+ const options = await resolveOptions({ entry, theme }, "build");
301
+ output = output || options.data.config.exportFilename || `${path.basename(entry, ".md")}-export`;
302
+ const server = await createServer(
303
+ options,
304
+ {
305
+ server: { port },
306
+ clearScreen: false
307
+ }
308
+ );
309
+ await server.listen(port);
310
+ printInfo(options);
311
+ parser.filterDisabled(options.data);
312
+ const width = options.data.config.canvasWidth;
313
+ const height = Math.round(width / options.data.config.aspectRatio);
314
+ output = await exportSlides({
315
+ port,
316
+ slides: options.data.slides,
317
+ total: options.data.slides.length,
318
+ range,
319
+ format,
320
+ output,
321
+ timeout,
322
+ dark,
323
+ routerMode: options.data.config.routerMode,
324
+ width,
325
+ height,
326
+ withClicks,
327
+ executablePath
328
+ });
329
+ console.log(`${green(" \u2713 ")}${dim("exported to ")}./${output}
294
330
  `);
295
- server.close();
296
- process.exit(0);
297
- });
331
+ server.close();
332
+ process.exit(0);
333
+ }
334
+ );
298
335
  cli.help().parse();
299
336
  function commonOptions(args) {
300
337
  return args.positional("entry", {
@@ -324,9 +361,11 @@ function printInfo(options, port, remote) {
324
361
  console.log(`${dim(" private slide show ")} > ${cyan(`http://localhost:${bold(port)}/${query}`)}`);
325
362
  console.log(`${dim(" presenter mode ")} > ${blue(`http://localhost:${bold(port)}${presenterPath}`)}`);
326
363
  if (remote !== void 0) {
327
- Object.values(os.networkInterfaces()).forEach((v) => (v || []).filter((details) => String(details.family).slice(-1) === "4" && !details.address.includes("127.0.0.1")).forEach(({ address }) => {
328
- console.log(`${dim(" remote control ")} > ${blue(`http://${address}:${port}${presenterPath}`)}`);
329
- }));
364
+ Object.values(os.networkInterfaces()).forEach(
365
+ (v) => (v || []).filter((details) => String(details.family).slice(-1) === "4" && !details.address.includes("127.0.0.1")).forEach(({ address }) => {
366
+ console.log(`${dim(" remote control ")} > ${blue(`http://${address}:${port}${presenterPath}`)}`);
367
+ })
368
+ );
330
369
  } else {
331
370
  console.log(`${dim(" remote control ")} > ${dim("pass --remote to enable")}`);
332
371
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkSQLX75IOjs = require('./chunk-SQLX75IO.js');
6
+ var _chunkAW7KQET4js = require('./chunk-AW7KQET4.js');
7
7
 
8
8
  // node/export.ts
9
- _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
9
+ _chunkAW7KQET4js.init_cjs_shims.call(void 0, );
10
10
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
11
11
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
12
12
  var _kolorist = require('kolorist');
@@ -61,10 +61,10 @@ async function exportSlides({
61
61
  withClicks = false,
62
62
  executablePath = void 0
63
63
  }) {
64
- if (!_chunkSQLX75IOjs.packageExists.call(void 0, "playwright-chromium"))
64
+ if (!_chunkAW7KQET4js.packageExists.call(void 0, "playwright-chromium"))
65
65
  throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i -D playwright-chromium`");
66
66
  const pages = _core.parseRangeString.call(void 0, total, range);
67
- const { chromium } = await Promise.resolve().then(() => _chunkSQLX75IOjs.__toESM.call(void 0, _chunkSQLX75IOjs.__require.call(void 0, "playwright-chromium")));
67
+ const { chromium } = await Promise.resolve().then(() => _chunkAW7KQET4js.__toESM.call(void 0, _chunkAW7KQET4js.__require.call(void 0, "playwright-chromium")));
68
68
  const browser = await chromium.launch({
69
69
  executablePath
70
70
  });
@@ -3,7 +3,7 @@ import {
3
3
  __toESM,
4
4
  init_esm_shims,
5
5
  packageExists
6
- } from "./chunk-GVA336JI.mjs";
6
+ } from "./chunk-57E5R3IA.mjs";
7
7
 
8
8
  // node/export.ts
9
9
  init_esm_shims();
package/dist/index.js CHANGED
@@ -9,20 +9,20 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkAHXRM5NGjs = require('./chunk-AHXRM5NG.js');
12
+ var _chunk4UR3M5JDjs = require('./chunk-4UR3M5JD.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkZJSOFQBRjs = require('./chunk-ZJSOFQBR.js');
16
+ var _chunkYUXTNPKAjs = require('./chunk-YUXTNPKA.js');
17
17
 
18
18
 
19
- var _chunkSQLX75IOjs = require('./chunk-SQLX75IO.js');
19
+ var _chunkAW7KQET4js = require('./chunk-AW7KQET4.js');
20
20
 
21
21
  // node/index.ts
22
- _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
22
+ _chunkAW7KQET4js.init_cjs_shims.call(void 0, );
23
23
 
24
24
  // node/declare.ts
25
- _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
25
+ _chunkAW7KQET4js.init_cjs_shims.call(void 0, );
26
26
 
27
27
 
28
28
 
@@ -36,4 +36,4 @@ _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
36
36
 
37
37
 
38
38
 
39
- exports.ViteSlidevPlugin = _chunkZJSOFQBRjs.ViteSlidevPlugin; exports.createServer = _chunkAHXRM5NGjs.createServer; exports.createWindiCSSPlugin = _chunkZJSOFQBRjs.createWindiCSSPlugin; exports.getAddonRoots = _chunkAHXRM5NGjs.getAddonRoots; exports.getCLIRoot = _chunkAHXRM5NGjs.getCLIRoot; exports.getClientRoot = _chunkAHXRM5NGjs.getClientRoot; exports.getRoot = _chunkAHXRM5NGjs.getRoot; exports.getThemeRoots = _chunkAHXRM5NGjs.getThemeRoots; exports.getUserRoot = _chunkAHXRM5NGjs.getUserRoot; exports.isPath = _chunkAHXRM5NGjs.isPath; exports.parser = _chunkAHXRM5NGjs.parser; exports.resolveOptions = _chunkAHXRM5NGjs.resolveOptions;
39
+ exports.ViteSlidevPlugin = _chunkYUXTNPKAjs.ViteSlidevPlugin; exports.createServer = _chunk4UR3M5JDjs.createServer; exports.createWindiCSSPlugin = _chunkYUXTNPKAjs.createWindiCSSPlugin; exports.getAddonRoots = _chunk4UR3M5JDjs.getAddonRoots; exports.getCLIRoot = _chunk4UR3M5JDjs.getCLIRoot; exports.getClientRoot = _chunk4UR3M5JDjs.getClientRoot; exports.getRoot = _chunk4UR3M5JDjs.getRoot; exports.getThemeRoots = _chunk4UR3M5JDjs.getThemeRoots; exports.getUserRoot = _chunk4UR3M5JDjs.getUserRoot; exports.isPath = _chunk4UR3M5JDjs.isPath; exports.parser = _chunk4UR3M5JDjs.parser; exports.resolveOptions = _chunk4UR3M5JDjs.resolveOptions;
package/dist/index.mjs CHANGED
@@ -9,14 +9,14 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-SWNG6UPD.mjs";
12
+ } from "./chunk-3VPTNK23.mjs";
13
13
  import {
14
14
  ViteSlidevPlugin,
15
15
  createWindiCSSPlugin
16
- } from "./chunk-QPGEWKWZ.mjs";
16
+ } from "./chunk-IY7QSYZ2.mjs";
17
17
  import {
18
18
  init_esm_shims
19
- } from "./chunk-GVA336JI.mjs";
19
+ } from "./chunk-57E5R3IA.mjs";
20
20
 
21
21
  // node/index.ts
22
22
  init_esm_shims();