@depup/vite 8.3.0-depup.0 → 8.3.1-depup.0
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/README.md +3 -3
- package/changes.json +3 -3
- 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 +540 -175
- package/dist/node/index.d.ts +4 -3
- package/dist/node/module-runner.js +10 -8
- package/package.json +14 -14
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": "@depup/vite",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1-depup.0",
|
|
4
4
|
"description": "Native-ESM powered web dev build tool (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"lightningcss": "^1.33.0",
|
|
67
67
|
"picomatch": "^4.0.7",
|
|
68
68
|
"postcss": "^8.5.28",
|
|
69
|
-
"rolldown": "^1.2.
|
|
69
|
+
"rolldown": "^1.2.11",
|
|
70
70
|
"tinyglobby": "^0.2.17"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@babel/parser": "^7.29.
|
|
73
|
+
"@babel/parser": "^7.29.9",
|
|
74
74
|
"@jridgewell/remapping": "^2.3.5",
|
|
75
75
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
76
76
|
"@polka/compression": "^1.0.0-next.25",
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"@types/escape-html": "^1.0.4",
|
|
81
81
|
"@types/pnpapi": "^0.0.5",
|
|
82
82
|
"@vercel/detect-agent": "^1.2.5",
|
|
83
|
-
"@vitejs/devtools": "^0.7.
|
|
83
|
+
"@vitejs/devtools": "^0.7.5",
|
|
84
84
|
"@vitest/utils": "4.1.11",
|
|
85
85
|
"@voidzero-dev/vite-task-client": "^0.2.0",
|
|
86
|
-
"artichokie": "^0.4.
|
|
87
|
-
"baseline-browser-mapping": "^2.11.
|
|
86
|
+
"artichokie": "^0.4.5",
|
|
87
|
+
"baseline-browser-mapping": "^2.11.25",
|
|
88
88
|
"cac": "^7.0.0",
|
|
89
89
|
"chokidar": "^3.6.0",
|
|
90
90
|
"connect": "^3.7.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"host-validation-middleware": "^0.1.4",
|
|
102
102
|
"http-proxy-3": "^1.23.3",
|
|
103
103
|
"launch-editor-middleware": "^2.14.1",
|
|
104
|
-
"magic-string": "^1.
|
|
104
|
+
"magic-string": "^1.4.1",
|
|
105
105
|
"mlly": "^1.8.2",
|
|
106
106
|
"mrmime": "^2.0.1",
|
|
107
107
|
"nanoid": "^5.1.16",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"postcss-modules": "^9.0.1",
|
|
117
117
|
"premove": "^4.0.0",
|
|
118
118
|
"resolve.exports": "^2.0.3",
|
|
119
|
-
"rolldown-plugin-dts": "^0.28.
|
|
119
|
+
"rolldown-plugin-dts": "^0.28.6",
|
|
120
120
|
"rollup": "^4.59.0",
|
|
121
121
|
"rollup-plugin-license": "^3.7.1",
|
|
122
|
-
"sass": "^1.
|
|
123
|
-
"sass-embedded": "^1.
|
|
122
|
+
"sass": "^1.105.0",
|
|
123
|
+
"sass-embedded": "^1.105.0",
|
|
124
124
|
"sirv": "^3.0.2",
|
|
125
125
|
"strip-literal": "^4.0.0",
|
|
126
126
|
"terser": "^5.51.2",
|
|
@@ -201,14 +201,14 @@
|
|
|
201
201
|
"depup": {
|
|
202
202
|
"changes": {
|
|
203
203
|
"rolldown": {
|
|
204
|
-
"from": "~1.2.
|
|
205
|
-
"to": "^1.2.
|
|
204
|
+
"from": "~1.2.9",
|
|
205
|
+
"to": "^1.2.11"
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
"depsUpdated": 1,
|
|
209
209
|
"originalPackage": "vite",
|
|
210
|
-
"originalVersion": "8.3.
|
|
211
|
-
"processedAt": "2026-09-
|
|
210
|
+
"originalVersion": "8.3.1",
|
|
211
|
+
"processedAt": "2026-09-27T01:04:55.152Z",
|
|
212
212
|
"smokeTest": "failed"
|
|
213
213
|
}
|
|
214
214
|
}
|