@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/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/vite
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [vite](https://www.npmjs.com/package/vite) @ 8.3.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [vite](https://www.npmjs.com/package/vite) @ 8.3.1 |
|
|
17
|
+
| Processed | 2026-09-27 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 1 |
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ npm install @depup/vite
|
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
|
-
| rolldown | ~1.2.
|
|
25
|
+
| rolldown | ~1.2.9 | ^1.2.11 |
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
package/changes.json
CHANGED
|
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
|
|
|
8
8
|
return id;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/rolldown@1.2.
|
|
11
|
+
//#region ../../node_modules/.pnpm/rolldown@1.2.9/node_modules/rolldown/dist/experimental-runtime-base.mjs
|
|
12
12
|
var __create = Object.create;
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region \0@oxc-project+runtime@0.
|
|
44
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
|
|
45
45
|
function _typeof(o) {
|
|
46
46
|
"@babel/helpers - typeof";
|
|
47
47
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -51,7 +51,7 @@ function _typeof(o) {
|
|
|
51
51
|
}, _typeof(o);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region \0@oxc-project+runtime@0.
|
|
54
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
|
|
55
55
|
function toPrimitive(t, r) {
|
|
56
56
|
if ("object" != _typeof(t) || !t) return t;
|
|
57
57
|
var e = t[Symbol.toPrimitive];
|
|
@@ -63,13 +63,13 @@ function toPrimitive(t, r) {
|
|
|
63
63
|
return ("string" === r ? String : Number)(t);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region \0@oxc-project+runtime@0.
|
|
66
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
|
|
67
67
|
function toPropertyKey(t) {
|
|
68
68
|
var i = toPrimitive(t, "string");
|
|
69
69
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region \0@oxc-project+runtime@0.
|
|
72
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
|
|
73
73
|
function _defineProperty(e, r, t) {
|
|
74
74
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
75
75
|
value: t,
|
|
@@ -79,7 +79,7 @@ function _defineProperty(e, r, t) {
|
|
|
79
79
|
}) : e[r] = t, e;
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
-
//#region ../../node_modules/.pnpm/rolldown@1.2.
|
|
82
|
+
//#region ../../node_modules/.pnpm/rolldown@1.2.9/node_modules/rolldown/dist/experimental-runtime.mjs
|
|
83
83
|
var Module = class {
|
|
84
84
|
/**
|
|
85
85
|
* @param {string} id
|
|
@@ -208,6 +208,12 @@ var DevRuntime = class {
|
|
|
208
208
|
"hooks",
|
|
209
209
|
null
|
|
210
210
|
);
|
|
211
|
+
_defineProperty(
|
|
212
|
+
this,
|
|
213
|
+
/** @type {Map<string, Promise<any>>} */
|
|
214
|
+
"lazyRequests",
|
|
215
|
+
/* @__PURE__ */ new Map()
|
|
216
|
+
);
|
|
211
217
|
_defineProperty(
|
|
212
218
|
this,
|
|
213
219
|
/** @internal */
|
|
@@ -322,6 +328,7 @@ var DevRuntime = class {
|
|
|
322
328
|
*/
|
|
323
329
|
removeModuleCache(id) {
|
|
324
330
|
this.moduleCache.delete(id);
|
|
331
|
+
this.lazyRequests.delete(id);
|
|
325
332
|
this.hooks?.onModuleCacheRemoval(id);
|
|
326
333
|
}
|
|
327
334
|
/**
|
|
@@ -348,6 +355,29 @@ var DevRuntime = class {
|
|
|
348
355
|
}
|
|
349
356
|
}
|
|
350
357
|
/**
|
|
358
|
+
* The entry point for a lazy `import()`. `id` is the module the boundary stands for; the
|
|
359
|
+
* boundary's own id appears only inside `fetchChunk`'s URL.
|
|
360
|
+
*
|
|
361
|
+
* Nothing is registered under the boundary id, deliberately. A cache entry with no factory
|
|
362
|
+
* behind it reads as "executed" to the HMR boundary walk, and `applyUpdate` turns an
|
|
363
|
+
* updated-but-factory-less module into a full page reload.
|
|
364
|
+
*
|
|
365
|
+
* A rejection is memoized like any other outcome, matching `import()` of a module that
|
|
366
|
+
* threw. Retrying could not work anyway: a factory registers its module before running its
|
|
367
|
+
* body, so re-running `initModule` would return half-initialized exports as success.
|
|
368
|
+
*
|
|
369
|
+
* @param {string} id
|
|
370
|
+
* @param {() => Promise<unknown>} fetchChunk
|
|
371
|
+
* @returns {Promise<any>}
|
|
372
|
+
*/
|
|
373
|
+
requestLazy(id, fetchChunk) {
|
|
374
|
+
const pending = this.lazyRequests.get(id);
|
|
375
|
+
if (pending) return pending;
|
|
376
|
+
const promise = this.moduleCache.has(id) || this.factories.has(id) ? Promise.resolve().then(() => this.initModule(id)) : Promise.resolve().then(fetchChunk).then(() => this.initModule(id));
|
|
377
|
+
this.lazyRequests.set(id, promise);
|
|
378
|
+
return promise;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
351
381
|
* @param {string} moduleId
|
|
352
382
|
*/
|
|
353
383
|
createModuleHotContext(moduleId) {
|
package/dist/client/client.mjs
CHANGED
|
@@ -381,7 +381,7 @@ function stringifyConsoleArg(value) {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
//#endregion
|
|
384
|
-
//#region \0@oxc-project+runtime@0.
|
|
384
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
|
|
385
385
|
function _typeof(o) {
|
|
386
386
|
"@babel/helpers - typeof";
|
|
387
387
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -391,7 +391,7 @@ function _typeof(o) {
|
|
|
391
391
|
}, _typeof(o);
|
|
392
392
|
}
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region \0@oxc-project+runtime@0.
|
|
394
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
|
|
395
395
|
function toPrimitive(t, r) {
|
|
396
396
|
if ("object" != _typeof(t) || !t) return t;
|
|
397
397
|
var e = t[Symbol.toPrimitive];
|
|
@@ -403,13 +403,13 @@ function toPrimitive(t, r) {
|
|
|
403
403
|
return ("string" === r ? String : Number)(t);
|
|
404
404
|
}
|
|
405
405
|
//#endregion
|
|
406
|
-
//#region \0@oxc-project+runtime@0.
|
|
406
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
|
|
407
407
|
function toPropertyKey(t) {
|
|
408
408
|
var i = toPrimitive(t, "string");
|
|
409
409
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
410
410
|
}
|
|
411
411
|
//#endregion
|
|
412
|
-
//#region \0@oxc-project+runtime@0.
|
|
412
|
+
//#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
|
|
413
413
|
function _defineProperty(e, r, t) {
|
|
414
414
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
415
415
|
value: t,
|
|
@@ -4552,8 +4552,8 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4552
4552
|
exports.isPseudoElement = isPseudoElement;
|
|
4553
4553
|
exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;
|
|
4554
4554
|
var _types = require_types();
|
|
4555
|
-
var _IS_TYPE;
|
|
4556
|
-
var IS_TYPE = (_IS_TYPE
|
|
4555
|
+
var _IS_TYPE = {};
|
|
4556
|
+
var IS_TYPE = (_IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
|
|
4557
4557
|
function isNode(node) {
|
|
4558
4558
|
return typeof node === "object" && IS_TYPE[node.type];
|
|
4559
4559
|
}
|
package/dist/node/chunks/lib.js
CHANGED
|
@@ -233,8 +233,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js
|
|
234
234
|
var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
235
235
|
module.exports = function walk(nodes, cb, bubble) {
|
|
236
|
-
var i, max, node, result;
|
|
237
|
-
for (
|
|
236
|
+
var i = 0, max = nodes.length, node, result;
|
|
237
|
+
for (; i < max; i += 1) {
|
|
238
238
|
node = nodes[i];
|
|
239
239
|
if (!bubble) result = cb(node, i, nodes);
|
|
240
240
|
if (result !== false && node.type === "function" && Array.isArray(node.nodes)) walk(node.nodes, cb, bubble);
|