vite 6.0.0-beta.3 → 6.0.0-beta.4
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/LICENSE.md +52 -736
- package/bin/vite.js +1 -0
- package/dist/client/client.mjs +1 -1
- package/dist/node/chunks/{dep-DHwgfHPT.js → dep-BkDduZ8N.js} +9 -13
- package/dist/node/chunks/{dep-D-7KCb9p.js → dep-CdoEeCn3.js} +704 -439
- package/dist/node/chunks/{dep-ChZnDG_O.js → dep-Cpgpmu8-.js} +24796 -25355
- package/dist/node/chunks/{dep-CBTZ9M2V.js → dep-Cq6WeEUK.js} +4 -8
- package/dist/node/chunks/{dep-wWOLM6NS.js → dep-mtw2NpNs.js} +0 -4
- package/dist/node/cli.js +19 -33
- package/dist/node/index.d.ts +20 -6
- package/dist/node/index.js +5 -4
- package/dist/node/module-runner.js +1 -1
- package/dist/node-cjs/publicUtils.cjs +78 -92
- package/package.json +14 -14
package/bin/vite.js
CHANGED
@@ -43,6 +43,7 @@ if (debugIndex > 0) {
|
|
43
43
|
|
44
44
|
function start() {
|
45
45
|
try {
|
46
|
+
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.8.0+ and only called if it exists
|
46
47
|
module.enableCompileCache?.()
|
47
48
|
} catch {}
|
48
49
|
return import('../dist/node/cli.js')
|
package/dist/client/client.mjs
CHANGED
@@ -155,7 +155,7 @@ class HMRClient {
|
|
155
155
|
}
|
156
156
|
// After an HMR update, some modules are no longer imported on the page
|
157
157
|
// but they may have left behind side effects that need to be cleaned up
|
158
|
-
// (
|
158
|
+
// (e.g. style injections)
|
159
159
|
async prunePaths(paths) {
|
160
160
|
await Promise.all(
|
161
161
|
paths.map((path) => {
|
@@ -1,14 +1,10 @@
|
|
1
|
-
import { L as getDefaultExportFromCjs } from './dep-
|
2
|
-
import require$$0 from 'path';
|
3
|
-
import require$$
|
4
|
-
import { r as requireLib } from './dep-
|
1
|
+
import { L as getDefaultExportFromCjs } from './dep-Cpgpmu8-.js';
|
2
|
+
import require$$0$1 from 'path';
|
3
|
+
import require$$0 from 'fs';
|
4
|
+
import { r as requireLib } from './dep-mtw2NpNs.js';
|
5
5
|
|
6
|
-
import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
|
7
|
-
import { dirname as __cjs_dirname } from 'node:path';
|
8
6
|
import { createRequire as __cjs_createRequire } from 'node:module';
|
9
7
|
|
10
|
-
const __filename = __cjs_fileURLToPath(import.meta.url);
|
11
|
-
const __dirname = __cjs_dirname(__filename);
|
12
8
|
const require = __cjs_createRequire(import.meta.url);
|
13
9
|
const __require = require;
|
14
10
|
function _mergeNamespaces(n, m) {
|
@@ -319,8 +315,8 @@ var hasRequiredReadCache;
|
|
319
315
|
function requireReadCache () {
|
320
316
|
if (hasRequiredReadCache) return readCache.exports;
|
321
317
|
hasRequiredReadCache = 1;
|
322
|
-
var fs = require$$
|
323
|
-
var path = require$$0;
|
318
|
+
var fs = require$$0;
|
319
|
+
var path = require$$0$1;
|
324
320
|
var pify = requirePify();
|
325
321
|
|
326
322
|
var stat = pify(fs.stat);
|
@@ -708,7 +704,7 @@ function requireProcessContent () {
|
|
708
704
|
hasRequiredProcessContent = 1;
|
709
705
|
|
710
706
|
// builtin tooling
|
711
|
-
const path = require$$0;
|
707
|
+
const path = require$$0$1;
|
712
708
|
|
713
709
|
// placeholder tooling
|
714
710
|
let sugarss;
|
@@ -775,7 +771,7 @@ function requireParseStyles () {
|
|
775
771
|
if (hasRequiredParseStyles) return parseStyles_1;
|
776
772
|
hasRequiredParseStyles = 1;
|
777
773
|
|
778
|
-
const path = require$$0;
|
774
|
+
const path = require$$0$1;
|
779
775
|
|
780
776
|
const dataURL = requireDataUrl();
|
781
777
|
const parseStatements = requireParseStatements();
|
@@ -1021,7 +1017,7 @@ function requirePostcssImport () {
|
|
1021
1017
|
if (hasRequiredPostcssImport) return postcssImport;
|
1022
1018
|
hasRequiredPostcssImport = 1;
|
1023
1019
|
// builtin tooling
|
1024
|
-
const path = require$$0;
|
1020
|
+
const path = require$$0$1;
|
1025
1021
|
|
1026
1022
|
// internal tooling
|
1027
1023
|
const applyConditions = requireApplyConditions();
|