vite 6.0.0-beta.1 → 6.0.0-beta.3

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.
@@ -0,0 +1,593 @@
1
+ import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
2
+ import { dirname as __cjs_dirname } from 'node:path';
3
+ import { createRequire as __cjs_createRequire } from 'node:module';
4
+
5
+ const __filename = __cjs_fileURLToPath(import.meta.url);
6
+ const __dirname = __cjs_dirname(__filename);
7
+ const require = __cjs_createRequire(import.meta.url);
8
+ const __require = require;
9
+ var parse;
10
+ var hasRequiredParse;
11
+
12
+ function requireParse () {
13
+ if (hasRequiredParse) return parse;
14
+ hasRequiredParse = 1;
15
+ var openParentheses = "(".charCodeAt(0);
16
+ var closeParentheses = ")".charCodeAt(0);
17
+ var singleQuote = "'".charCodeAt(0);
18
+ var doubleQuote = '"'.charCodeAt(0);
19
+ var backslash = "\\".charCodeAt(0);
20
+ var slash = "/".charCodeAt(0);
21
+ var comma = ",".charCodeAt(0);
22
+ var colon = ":".charCodeAt(0);
23
+ var star = "*".charCodeAt(0);
24
+ var uLower = "u".charCodeAt(0);
25
+ var uUpper = "U".charCodeAt(0);
26
+ var plus = "+".charCodeAt(0);
27
+ var isUnicodeRange = /^[a-f0-9?-]+$/i;
28
+
29
+ parse = function(input) {
30
+ var tokens = [];
31
+ var value = input;
32
+
33
+ var next,
34
+ quote,
35
+ prev,
36
+ token,
37
+ escape,
38
+ escapePos,
39
+ whitespacePos,
40
+ parenthesesOpenPos;
41
+ var pos = 0;
42
+ var code = value.charCodeAt(pos);
43
+ var max = value.length;
44
+ var stack = [{ nodes: tokens }];
45
+ var balanced = 0;
46
+ var parent;
47
+
48
+ var name = "";
49
+ var before = "";
50
+ var after = "";
51
+
52
+ while (pos < max) {
53
+ // Whitespaces
54
+ if (code <= 32) {
55
+ next = pos;
56
+ do {
57
+ next += 1;
58
+ code = value.charCodeAt(next);
59
+ } while (code <= 32);
60
+ token = value.slice(pos, next);
61
+
62
+ prev = tokens[tokens.length - 1];
63
+ if (code === closeParentheses && balanced) {
64
+ after = token;
65
+ } else if (prev && prev.type === "div") {
66
+ prev.after = token;
67
+ prev.sourceEndIndex += token.length;
68
+ } else if (
69
+ code === comma ||
70
+ code === colon ||
71
+ (code === slash &&
72
+ value.charCodeAt(next + 1) !== star &&
73
+ (!parent ||
74
+ (parent && parent.type === "function" && parent.value !== "calc")))
75
+ ) {
76
+ before = token;
77
+ } else {
78
+ tokens.push({
79
+ type: "space",
80
+ sourceIndex: pos,
81
+ sourceEndIndex: next,
82
+ value: token
83
+ });
84
+ }
85
+
86
+ pos = next;
87
+
88
+ // Quotes
89
+ } else if (code === singleQuote || code === doubleQuote) {
90
+ next = pos;
91
+ quote = code === singleQuote ? "'" : '"';
92
+ token = {
93
+ type: "string",
94
+ sourceIndex: pos,
95
+ quote: quote
96
+ };
97
+ do {
98
+ escape = false;
99
+ next = value.indexOf(quote, next + 1);
100
+ if (~next) {
101
+ escapePos = next;
102
+ while (value.charCodeAt(escapePos - 1) === backslash) {
103
+ escapePos -= 1;
104
+ escape = !escape;
105
+ }
106
+ } else {
107
+ value += quote;
108
+ next = value.length - 1;
109
+ token.unclosed = true;
110
+ }
111
+ } while (escape);
112
+ token.value = value.slice(pos + 1, next);
113
+ token.sourceEndIndex = token.unclosed ? next : next + 1;
114
+ tokens.push(token);
115
+ pos = next + 1;
116
+ code = value.charCodeAt(pos);
117
+
118
+ // Comments
119
+ } else if (code === slash && value.charCodeAt(pos + 1) === star) {
120
+ next = value.indexOf("*/", pos);
121
+
122
+ token = {
123
+ type: "comment",
124
+ sourceIndex: pos,
125
+ sourceEndIndex: next + 2
126
+ };
127
+
128
+ if (next === -1) {
129
+ token.unclosed = true;
130
+ next = value.length;
131
+ token.sourceEndIndex = next;
132
+ }
133
+
134
+ token.value = value.slice(pos + 2, next);
135
+ tokens.push(token);
136
+
137
+ pos = next + 2;
138
+ code = value.charCodeAt(pos);
139
+
140
+ // Operation within calc
141
+ } else if (
142
+ (code === slash || code === star) &&
143
+ parent &&
144
+ parent.type === "function" &&
145
+ parent.value === "calc"
146
+ ) {
147
+ token = value[pos];
148
+ tokens.push({
149
+ type: "word",
150
+ sourceIndex: pos - before.length,
151
+ sourceEndIndex: pos + token.length,
152
+ value: token
153
+ });
154
+ pos += 1;
155
+ code = value.charCodeAt(pos);
156
+
157
+ // Dividers
158
+ } else if (code === slash || code === comma || code === colon) {
159
+ token = value[pos];
160
+
161
+ tokens.push({
162
+ type: "div",
163
+ sourceIndex: pos - before.length,
164
+ sourceEndIndex: pos + token.length,
165
+ value: token,
166
+ before: before,
167
+ after: ""
168
+ });
169
+ before = "";
170
+
171
+ pos += 1;
172
+ code = value.charCodeAt(pos);
173
+
174
+ // Open parentheses
175
+ } else if (openParentheses === code) {
176
+ // Whitespaces after open parentheses
177
+ next = pos;
178
+ do {
179
+ next += 1;
180
+ code = value.charCodeAt(next);
181
+ } while (code <= 32);
182
+ parenthesesOpenPos = pos;
183
+ token = {
184
+ type: "function",
185
+ sourceIndex: pos - name.length,
186
+ value: name,
187
+ before: value.slice(parenthesesOpenPos + 1, next)
188
+ };
189
+ pos = next;
190
+
191
+ if (name === "url" && code !== singleQuote && code !== doubleQuote) {
192
+ next -= 1;
193
+ do {
194
+ escape = false;
195
+ next = value.indexOf(")", next + 1);
196
+ if (~next) {
197
+ escapePos = next;
198
+ while (value.charCodeAt(escapePos - 1) === backslash) {
199
+ escapePos -= 1;
200
+ escape = !escape;
201
+ }
202
+ } else {
203
+ value += ")";
204
+ next = value.length - 1;
205
+ token.unclosed = true;
206
+ }
207
+ } while (escape);
208
+ // Whitespaces before closed
209
+ whitespacePos = next;
210
+ do {
211
+ whitespacePos -= 1;
212
+ code = value.charCodeAt(whitespacePos);
213
+ } while (code <= 32);
214
+ if (parenthesesOpenPos < whitespacePos) {
215
+ if (pos !== whitespacePos + 1) {
216
+ token.nodes = [
217
+ {
218
+ type: "word",
219
+ sourceIndex: pos,
220
+ sourceEndIndex: whitespacePos + 1,
221
+ value: value.slice(pos, whitespacePos + 1)
222
+ }
223
+ ];
224
+ } else {
225
+ token.nodes = [];
226
+ }
227
+ if (token.unclosed && whitespacePos + 1 !== next) {
228
+ token.after = "";
229
+ token.nodes.push({
230
+ type: "space",
231
+ sourceIndex: whitespacePos + 1,
232
+ sourceEndIndex: next,
233
+ value: value.slice(whitespacePos + 1, next)
234
+ });
235
+ } else {
236
+ token.after = value.slice(whitespacePos + 1, next);
237
+ token.sourceEndIndex = next;
238
+ }
239
+ } else {
240
+ token.after = "";
241
+ token.nodes = [];
242
+ }
243
+ pos = next + 1;
244
+ token.sourceEndIndex = token.unclosed ? next : pos;
245
+ code = value.charCodeAt(pos);
246
+ tokens.push(token);
247
+ } else {
248
+ balanced += 1;
249
+ token.after = "";
250
+ token.sourceEndIndex = pos + 1;
251
+ tokens.push(token);
252
+ stack.push(token);
253
+ tokens = token.nodes = [];
254
+ parent = token;
255
+ }
256
+ name = "";
257
+
258
+ // Close parentheses
259
+ } else if (closeParentheses === code && balanced) {
260
+ pos += 1;
261
+ code = value.charCodeAt(pos);
262
+
263
+ parent.after = after;
264
+ parent.sourceEndIndex += after.length;
265
+ after = "";
266
+ balanced -= 1;
267
+ stack[stack.length - 1].sourceEndIndex = pos;
268
+ stack.pop();
269
+ parent = stack[balanced];
270
+ tokens = parent.nodes;
271
+
272
+ // Words
273
+ } else {
274
+ next = pos;
275
+ do {
276
+ if (code === backslash) {
277
+ next += 1;
278
+ }
279
+ next += 1;
280
+ code = value.charCodeAt(next);
281
+ } while (
282
+ next < max &&
283
+ !(
284
+ code <= 32 ||
285
+ code === singleQuote ||
286
+ code === doubleQuote ||
287
+ code === comma ||
288
+ code === colon ||
289
+ code === slash ||
290
+ code === openParentheses ||
291
+ (code === star &&
292
+ parent &&
293
+ parent.type === "function" &&
294
+ parent.value === "calc") ||
295
+ (code === slash &&
296
+ parent.type === "function" &&
297
+ parent.value === "calc") ||
298
+ (code === closeParentheses && balanced)
299
+ )
300
+ );
301
+ token = value.slice(pos, next);
302
+
303
+ if (openParentheses === code) {
304
+ name = token;
305
+ } else if (
306
+ (uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) &&
307
+ plus === token.charCodeAt(1) &&
308
+ isUnicodeRange.test(token.slice(2))
309
+ ) {
310
+ tokens.push({
311
+ type: "unicode-range",
312
+ sourceIndex: pos,
313
+ sourceEndIndex: next,
314
+ value: token
315
+ });
316
+ } else {
317
+ tokens.push({
318
+ type: "word",
319
+ sourceIndex: pos,
320
+ sourceEndIndex: next,
321
+ value: token
322
+ });
323
+ }
324
+
325
+ pos = next;
326
+ }
327
+ }
328
+
329
+ for (pos = stack.length - 1; pos; pos -= 1) {
330
+ stack[pos].unclosed = true;
331
+ stack[pos].sourceEndIndex = value.length;
332
+ }
333
+
334
+ return stack[0].nodes;
335
+ };
336
+ return parse;
337
+ }
338
+
339
+ var walk;
340
+ var hasRequiredWalk;
341
+
342
+ function requireWalk () {
343
+ if (hasRequiredWalk) return walk;
344
+ hasRequiredWalk = 1;
345
+ walk = function walk(nodes, cb, bubble) {
346
+ var i, max, node, result;
347
+
348
+ for (i = 0, max = nodes.length; i < max; i += 1) {
349
+ node = nodes[i];
350
+ if (!bubble) {
351
+ result = cb(node, i, nodes);
352
+ }
353
+
354
+ if (
355
+ result !== false &&
356
+ node.type === "function" &&
357
+ Array.isArray(node.nodes)
358
+ ) {
359
+ walk(node.nodes, cb, bubble);
360
+ }
361
+
362
+ if (bubble) {
363
+ cb(node, i, nodes);
364
+ }
365
+ }
366
+ };
367
+ return walk;
368
+ }
369
+
370
+ var stringify_1;
371
+ var hasRequiredStringify;
372
+
373
+ function requireStringify () {
374
+ if (hasRequiredStringify) return stringify_1;
375
+ hasRequiredStringify = 1;
376
+ function stringifyNode(node, custom) {
377
+ var type = node.type;
378
+ var value = node.value;
379
+ var buf;
380
+ var customResult;
381
+
382
+ if (custom && (customResult = custom(node)) !== undefined) {
383
+ return customResult;
384
+ } else if (type === "word" || type === "space") {
385
+ return value;
386
+ } else if (type === "string") {
387
+ buf = node.quote || "";
388
+ return buf + value + (node.unclosed ? "" : buf);
389
+ } else if (type === "comment") {
390
+ return "/*" + value + (node.unclosed ? "" : "*/");
391
+ } else if (type === "div") {
392
+ return (node.before || "") + value + (node.after || "");
393
+ } else if (Array.isArray(node.nodes)) {
394
+ buf = stringify(node.nodes, custom);
395
+ if (type !== "function") {
396
+ return buf;
397
+ }
398
+ return (
399
+ value +
400
+ "(" +
401
+ (node.before || "") +
402
+ buf +
403
+ (node.after || "") +
404
+ (node.unclosed ? "" : ")")
405
+ );
406
+ }
407
+ return value;
408
+ }
409
+
410
+ function stringify(nodes, custom) {
411
+ var result, i;
412
+
413
+ if (Array.isArray(nodes)) {
414
+ result = "";
415
+ for (i = nodes.length - 1; ~i; i -= 1) {
416
+ result = stringifyNode(nodes[i], custom) + result;
417
+ }
418
+ return result;
419
+ }
420
+ return stringifyNode(nodes, custom);
421
+ }
422
+
423
+ stringify_1 = stringify;
424
+ return stringify_1;
425
+ }
426
+
427
+ var unit;
428
+ var hasRequiredUnit;
429
+
430
+ function requireUnit () {
431
+ if (hasRequiredUnit) return unit;
432
+ hasRequiredUnit = 1;
433
+ var minus = "-".charCodeAt(0);
434
+ var plus = "+".charCodeAt(0);
435
+ var dot = ".".charCodeAt(0);
436
+ var exp = "e".charCodeAt(0);
437
+ var EXP = "E".charCodeAt(0);
438
+
439
+ // Check if three code points would start a number
440
+ // https://www.w3.org/TR/css-syntax-3/#starts-with-a-number
441
+ function likeNumber(value) {
442
+ var code = value.charCodeAt(0);
443
+ var nextCode;
444
+
445
+ if (code === plus || code === minus) {
446
+ nextCode = value.charCodeAt(1);
447
+
448
+ if (nextCode >= 48 && nextCode <= 57) {
449
+ return true;
450
+ }
451
+
452
+ var nextNextCode = value.charCodeAt(2);
453
+
454
+ if (nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57) {
455
+ return true;
456
+ }
457
+
458
+ return false;
459
+ }
460
+
461
+ if (code === dot) {
462
+ nextCode = value.charCodeAt(1);
463
+
464
+ if (nextCode >= 48 && nextCode <= 57) {
465
+ return true;
466
+ }
467
+
468
+ return false;
469
+ }
470
+
471
+ if (code >= 48 && code <= 57) {
472
+ return true;
473
+ }
474
+
475
+ return false;
476
+ }
477
+
478
+ // Consume a number
479
+ // https://www.w3.org/TR/css-syntax-3/#consume-number
480
+ unit = function(value) {
481
+ var pos = 0;
482
+ var length = value.length;
483
+ var code;
484
+ var nextCode;
485
+ var nextNextCode;
486
+
487
+ if (length === 0 || !likeNumber(value)) {
488
+ return false;
489
+ }
490
+
491
+ code = value.charCodeAt(pos);
492
+
493
+ if (code === plus || code === minus) {
494
+ pos++;
495
+ }
496
+
497
+ while (pos < length) {
498
+ code = value.charCodeAt(pos);
499
+
500
+ if (code < 48 || code > 57) {
501
+ break;
502
+ }
503
+
504
+ pos += 1;
505
+ }
506
+
507
+ code = value.charCodeAt(pos);
508
+ nextCode = value.charCodeAt(pos + 1);
509
+
510
+ if (code === dot && nextCode >= 48 && nextCode <= 57) {
511
+ pos += 2;
512
+
513
+ while (pos < length) {
514
+ code = value.charCodeAt(pos);
515
+
516
+ if (code < 48 || code > 57) {
517
+ break;
518
+ }
519
+
520
+ pos += 1;
521
+ }
522
+ }
523
+
524
+ code = value.charCodeAt(pos);
525
+ nextCode = value.charCodeAt(pos + 1);
526
+ nextNextCode = value.charCodeAt(pos + 2);
527
+
528
+ if (
529
+ (code === exp || code === EXP) &&
530
+ ((nextCode >= 48 && nextCode <= 57) ||
531
+ ((nextCode === plus || nextCode === minus) &&
532
+ nextNextCode >= 48 &&
533
+ nextNextCode <= 57))
534
+ ) {
535
+ pos += nextCode === plus || nextCode === minus ? 3 : 2;
536
+
537
+ while (pos < length) {
538
+ code = value.charCodeAt(pos);
539
+
540
+ if (code < 48 || code > 57) {
541
+ break;
542
+ }
543
+
544
+ pos += 1;
545
+ }
546
+ }
547
+
548
+ return {
549
+ number: value.slice(0, pos),
550
+ unit: value.slice(pos)
551
+ };
552
+ };
553
+ return unit;
554
+ }
555
+
556
+ var lib;
557
+ var hasRequiredLib;
558
+
559
+ function requireLib () {
560
+ if (hasRequiredLib) return lib;
561
+ hasRequiredLib = 1;
562
+ var parse = requireParse();
563
+ var walk = requireWalk();
564
+ var stringify = requireStringify();
565
+
566
+ function ValueParser(value) {
567
+ if (this instanceof ValueParser) {
568
+ this.nodes = parse(value);
569
+ return this;
570
+ }
571
+ return new ValueParser(value);
572
+ }
573
+
574
+ ValueParser.prototype.toString = function() {
575
+ return Array.isArray(this.nodes) ? stringify(this.nodes) : "";
576
+ };
577
+
578
+ ValueParser.prototype.walk = function(cb, bubble) {
579
+ walk(this.nodes, cb, bubble);
580
+ return this;
581
+ };
582
+
583
+ ValueParser.unit = requireUnit();
584
+
585
+ ValueParser.walk = walk;
586
+
587
+ ValueParser.stringify = stringify;
588
+
589
+ lib = ValueParser;
590
+ return lib;
591
+ }
592
+
593
+ export { requireLib as r };
package/dist/node/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import path from 'node:path';
2
- import fs__default from 'node:fs';
2
+ import fs from 'node:fs';
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import { EventEmitter } from 'events';
5
- import { I as colors, A as createLogger, r as resolveConfig } from './chunks/dep-BZ_CwQkz.js';
5
+ import { K as colors, E as createLogger, r as resolveConfig } from './chunks/dep-ChZnDG_O.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -12,9 +12,6 @@ import 'tty';
12
12
  import 'esbuild';
13
13
  import 'path';
14
14
  import 'fs';
15
- import 'node:events';
16
- import 'node:stream';
17
- import 'node:string_decoder';
18
15
  import 'node:child_process';
19
16
  import 'node:http';
20
17
  import 'node:https';
@@ -30,13 +27,14 @@ import 'node:crypto';
30
27
  import 'node:dns';
31
28
  import 'vite/module-runner';
32
29
  import 'rollup/parseAst';
30
+ import 'node:readline';
31
+ import 'node:events';
32
+ import 'crypto';
33
33
  import 'module';
34
34
  import 'node:assert';
35
35
  import 'node:v8';
36
36
  import 'node:worker_threads';
37
- import 'crypto';
38
37
  import 'node:buffer';
39
- import 'node:readline';
40
38
  import 'zlib';
41
39
  import 'buffer';
42
40
  import 'https';
@@ -669,7 +667,7 @@ const stopProfiler = (log) => {
669
667
  const outPath = path.resolve(
670
668
  `./vite-profile-${profileCount++}.cpuprofile`
671
669
  );
672
- fs__default.writeFileSync(outPath, JSON.stringify(profile));
670
+ fs.writeFileSync(outPath, JSON.stringify(profile));
673
671
  log(
674
672
  colors.yellow(
675
673
  `CPU profile written to ${colors.white(colors.dim(outPath))}`
@@ -736,7 +734,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
736
734
  `[boolean] force the optimizer to ignore the cache and re-bundle`
737
735
  ).action(async (root, options) => {
738
736
  filterDuplicateOptions(options);
739
- const { createServer } = await import('./chunks/dep-BZ_CwQkz.js').then(function (n) { return n.M; });
737
+ const { createServer } = await import('./chunks/dep-ChZnDG_O.js').then(function (n) { return n.O; });
740
738
  try {
741
739
  const server = await createServer({
742
740
  root,
@@ -829,7 +827,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
829
827
  ).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as builder.entireApp`).action(
830
828
  async (root, options) => {
831
829
  filterDuplicateOptions(options);
832
- const build = await import('./chunks/dep-BZ_CwQkz.js').then(function (n) { return n.N; });
830
+ const build = await import('./chunks/dep-ChZnDG_O.js').then(function (n) { return n.P; });
833
831
  const buildOptions = cleanGlobalCLIOptions(
834
832
  cleanBuilderCLIOptions(options)
835
833
  );
@@ -884,7 +882,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
884
882
  ).action(
885
883
  async (root, options) => {
886
884
  filterDuplicateOptions(options);
887
- const { optimizeDeps } = await import('./chunks/dep-BZ_CwQkz.js').then(function (n) { return n.L; });
885
+ const { optimizeDeps } = await import('./chunks/dep-ChZnDG_O.js').then(function (n) { return n.N; });
888
886
  try {
889
887
  const config = await resolveConfig(
890
888
  {
@@ -910,7 +908,7 @@ ${e.stack}`),
910
908
  cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(
911
909
  async (root, options) => {
912
910
  filterDuplicateOptions(options);
913
- const { preview } = await import('./chunks/dep-BZ_CwQkz.js').then(function (n) { return n.O; });
911
+ const { preview } = await import('./chunks/dep-ChZnDG_O.js').then(function (n) { return n.Q; });
914
912
  try {
915
913
  const server = await preview({
916
914
  root,
@@ -6,6 +6,7 @@ const { version } = JSON.parse(
6
6
  readFileSync(new URL("../../package.json", import.meta.url)).toString()
7
7
  );
8
8
  const ROLLUP_HOOKS = [
9
+ "options",
9
10
  "buildStart",
10
11
  "buildEnd",
11
12
  "renderStart",
@@ -30,7 +31,8 @@ const ROLLUP_HOOKS = [
30
31
  "resolveDynamicImport",
31
32
  "resolveId",
32
33
  "shouldTransformCachedModule",
33
- "transform"
34
+ "transform",
35
+ "onLog"
34
36
  ];
35
37
  const VERSION = version;
36
38
  const DEFAULT_MAIN_FIELDS = [
@@ -135,5 +137,8 @@ const DEFAULT_DEV_PORT = 5173;
135
137
  const DEFAULT_PREVIEW_PORT = 4173;
136
138
  const DEFAULT_ASSETS_INLINE_LIMIT = 4096;
137
139
  const METADATA_FILENAME = "_metadata.json";
140
+ const ERR_OPTIMIZE_DEPS_PROCESSING_ERROR = "ERR_OPTIMIZE_DEPS_PROCESSING_ERROR";
141
+ const ERR_OUTDATED_OPTIMIZED_DEP = "ERR_OUTDATED_OPTIMIZED_DEP";
142
+ const ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR = "ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR";
138
143
 
139
- export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };
144
+ export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_OUTDATED_OPTIMIZED_DEP, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };