vite 8.3.0-beta.1 → 8.3.1
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/client/bundledDevClient.mjs +36 -6
- package/dist/client/client.mjs +4 -4
- package/dist/node/chunks/build.js +2 -2
- package/dist/node/chunks/lib.js +2 -2
- package/dist/node/chunks/node.js +616 -228
- package/dist/node/index.d.ts +4 -3
- package/dist/node/module-runner.js +10 -8
- package/package.json +10 -10
package/dist/node/index.d.ts
CHANGED
|
@@ -906,6 +906,7 @@ type ExportsData = {
|
|
|
906
906
|
};
|
|
907
907
|
interface DepsOptimizer {
|
|
908
908
|
init: () => Promise<void>;
|
|
909
|
+
initState: "idle" | "initializing" | "initialized";
|
|
909
910
|
metadata: DepOptimizationMetadata;
|
|
910
911
|
scanProcessing?: Promise<void>;
|
|
911
912
|
registerMissingImport: (id: string, resolved: string) => OptimizedDepInfo;
|
|
@@ -918,8 +919,8 @@ interface DepsOptimizer {
|
|
|
918
919
|
}
|
|
919
920
|
interface DepOptimizationConfig {
|
|
920
921
|
/**
|
|
921
|
-
* Force optimize listed dependencies (must be resolvable import paths
|
|
922
|
-
*
|
|
922
|
+
* Force optimize listed dependencies (must be resolvable import paths).
|
|
923
|
+
* Supports experimental glob patterns for deep imports.
|
|
923
924
|
*/
|
|
924
925
|
include?: string[];
|
|
925
926
|
/**
|
|
@@ -3129,7 +3130,7 @@ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: stri
|
|
|
3129
3130
|
*/
|
|
3130
3131
|
export declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
|
|
3131
3132
|
//#endregion
|
|
3132
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.28_tsx@4.23.
|
|
3133
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.28_tsx@4.23.15_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
|
|
3133
3134
|
type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
|
|
3134
3135
|
interface Config {
|
|
3135
3136
|
parser?: string | ProcessOptions['parser'] | false;
|
|
@@ -40,19 +40,21 @@ function promiseWithResolvers() {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.
|
|
43
|
+
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.6.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
44
44
|
var comma = 44, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = /* @__PURE__ */ new Uint8Array(64), charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
45
45
|
for (let i = 0; i < chars.length; i++) {
|
|
46
46
|
let c = chars.charCodeAt(i);
|
|
47
47
|
intToChar[i] = c, charToInt[c] = i;
|
|
48
48
|
}
|
|
49
|
-
function decodeInteger(reader
|
|
49
|
+
function decodeInteger(reader) {
|
|
50
50
|
let value = 0, shift = 0, integer = 0;
|
|
51
51
|
do
|
|
52
52
|
integer = charToInt[reader.next()], value |= (integer & 31) << shift, shift += 5;
|
|
53
53
|
while (integer & 32);
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function decodeSign(num) {
|
|
57
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
56
58
|
}
|
|
57
59
|
function hasMoreVlq(reader, max) {
|
|
58
60
|
return reader.pos >= max ? !1 : reader.peek() !== comma;
|
|
@@ -78,7 +80,7 @@ function decode(mappings) {
|
|
|
78
80
|
let semi = reader.indexOf(";"), line = [], sorted = !0, lastCol = 0;
|
|
79
81
|
for (genColumn = 0; reader.pos < semi;) {
|
|
80
82
|
let seg;
|
|
81
|
-
genColumn
|
|
83
|
+
genColumn += decodeSign(decodeInteger(reader)), genColumn < lastCol && (sorted = !1), lastCol = genColumn, hasMoreVlq(reader, semi) ? (sourcesIndex += decodeSign(decodeInteger(reader)), sourceLine += decodeSign(decodeInteger(reader)), sourceColumn += decodeSign(decodeInteger(reader)), hasMoreVlq(reader, semi) ? (namesIndex += decodeSign(decodeInteger(reader)), seg = [
|
|
82
84
|
genColumn,
|
|
83
85
|
sourcesIndex,
|
|
84
86
|
sourceLine,
|
|
@@ -176,7 +178,7 @@ const resolve = function(...arguments_) {
|
|
|
176
178
|
let resolvedPath = "", resolvedAbsolute = !1;
|
|
177
179
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
178
180
|
let path = index >= 0 ? arguments_[index] : cwd();
|
|
179
|
-
|
|
181
|
+
path && path.length !== 0 && (resolvedPath = `${path}/${resolvedPath}`, resolvedAbsolute = isAbsolute(path));
|
|
180
182
|
}
|
|
181
183
|
return resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
182
184
|
};
|
|
@@ -843,7 +845,7 @@ var Queue = class {
|
|
|
843
845
|
function createHMRHandlerForRunner(runner) {
|
|
844
846
|
return createHMRHandler(async (payload) => {
|
|
845
847
|
let hmrClient = runner.hmrClient;
|
|
846
|
-
if (
|
|
848
|
+
if (hmrClient && !runner.isClosed()) switch (payload.type) {
|
|
847
849
|
case "connected":
|
|
848
850
|
hmrClient.logger.debug("connected.");
|
|
849
851
|
break;
|
|
@@ -1160,7 +1162,7 @@ var ModuleRunner = class {
|
|
|
1160
1162
|
visited.add(mod.id);
|
|
1161
1163
|
for (let importedModuleId of mod.imports) {
|
|
1162
1164
|
let importedModule = this.evaluatedModules.getModuleById(importedModuleId);
|
|
1163
|
-
if (
|
|
1165
|
+
if (importedModule?.promise && !importedModule.evaluated && (callstack.includes(importedModuleId) || this.isCircularRequest(importedModule, callstack, visited))) return !0;
|
|
1164
1166
|
}
|
|
1165
1167
|
return !1;
|
|
1166
1168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"description": "Native-ESM powered web dev build tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build-tool",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"lightningcss": "^1.33.0",
|
|
60
60
|
"picomatch": "^4.0.7",
|
|
61
61
|
"postcss": "^8.5.28",
|
|
62
|
-
"rolldown": "~1.2.
|
|
62
|
+
"rolldown": "~1.2.9",
|
|
63
63
|
"tinyglobby": "^0.2.17"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@babel/parser": "^7.29.
|
|
66
|
+
"@babel/parser": "^7.29.9",
|
|
67
67
|
"@jridgewell/remapping": "^2.3.5",
|
|
68
68
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
69
69
|
"@polka/compression": "^1.0.0-next.25",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"@types/escape-html": "^1.0.4",
|
|
74
74
|
"@types/pnpapi": "^0.0.5",
|
|
75
75
|
"@vercel/detect-agent": "^1.2.5",
|
|
76
|
-
"@vitejs/devtools": "^0.7.
|
|
76
|
+
"@vitejs/devtools": "^0.7.5",
|
|
77
77
|
"@vitest/utils": "4.1.11",
|
|
78
78
|
"@voidzero-dev/vite-task-client": "^0.2.0",
|
|
79
|
-
"artichokie": "^0.4.
|
|
80
|
-
"baseline-browser-mapping": "^2.11.
|
|
79
|
+
"artichokie": "^0.4.5",
|
|
80
|
+
"baseline-browser-mapping": "^2.11.25",
|
|
81
81
|
"cac": "^7.0.0",
|
|
82
82
|
"chokidar": "^3.6.0",
|
|
83
83
|
"connect": "^3.7.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"host-validation-middleware": "^0.1.4",
|
|
95
95
|
"http-proxy-3": "^1.23.3",
|
|
96
96
|
"launch-editor-middleware": "^2.14.1",
|
|
97
|
-
"magic-string": "^1.
|
|
97
|
+
"magic-string": "^1.4.1",
|
|
98
98
|
"mlly": "^1.8.2",
|
|
99
99
|
"mrmime": "^2.0.1",
|
|
100
100
|
"nanoid": "^5.1.16",
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
"postcss-modules": "^9.0.1",
|
|
110
110
|
"premove": "^4.0.0",
|
|
111
111
|
"resolve.exports": "^2.0.3",
|
|
112
|
-
"rolldown-plugin-dts": "^0.28.
|
|
112
|
+
"rolldown-plugin-dts": "^0.28.6",
|
|
113
113
|
"rollup": "^4.59.0",
|
|
114
114
|
"rollup-plugin-license": "^3.7.1",
|
|
115
|
-
"sass": "^1.
|
|
116
|
-
"sass-embedded": "^1.
|
|
115
|
+
"sass": "^1.105.0",
|
|
116
|
+
"sass-embedded": "^1.105.0",
|
|
117
117
|
"sirv": "^3.0.2",
|
|
118
118
|
"strip-literal": "^4.0.0",
|
|
119
119
|
"terser": "^5.51.2",
|