vite 6.0.0-alpha.2 → 6.0.0-alpha.21
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 +112 -203
- package/client.d.ts +12 -0
- package/dist/client/client.mjs +614 -611
- package/dist/client/env.mjs +18 -24
- package/dist/node/chunks/{dep-DK04Q0H9.js → dep-B35KR9PC.js} +1 -1
- package/dist/node/chunks/{dep-DKZVy3_n.js → dep-BAOcN7N1.js} +165 -968
- package/dist/node/chunks/{dep-CrWVpuYf.js → dep-D-7KCb9p.js} +32 -2
- package/dist/node/chunks/{dep-E4cF1RpV.js → dep-D2vSWyBt.js} +37449 -39030
- package/dist/node/cli.js +260 -265
- package/dist/node/constants.js +108 -84
- package/dist/node/index.d.ts +2167 -2017
- package/dist/node/index.js +128 -258
- package/dist/node/module-runner.d.ts +33 -18
- package/dist/node/module-runner.js +275 -206
- package/dist/node-cjs/publicUtils.cjs +637 -657
- package/index.cjs +0 -2
- package/package.json +32 -29
- package/types/customEvent.d.ts +1 -0
- package/types/hmrPayload.d.ts +3 -1
- package/dist/client/client.mjs.map +0 -1
- package/dist/client/env.mjs.map +0 -1
@@ -371,13 +371,16 @@ var CharCodes;
|
|
371
371
|
(function (CharCodes) {
|
372
372
|
CharCodes[CharCodes["NUM"] = 35] = "NUM";
|
373
373
|
CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
|
374
|
+
CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
|
374
375
|
CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
|
375
376
|
CharCodes[CharCodes["NINE"] = 57] = "NINE";
|
376
377
|
CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
|
377
378
|
CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
|
378
379
|
CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
|
379
|
-
|
380
|
-
CharCodes[CharCodes["
|
380
|
+
CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
|
381
|
+
CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
|
382
|
+
CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
|
383
|
+
CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
|
381
384
|
})(CharCodes || (CharCodes = {}));
|
382
385
|
var BinTrieFlags;
|
383
386
|
(function (BinTrieFlags) {
|
@@ -385,6 +388,33 @@ var BinTrieFlags;
|
|
385
388
|
BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
|
386
389
|
BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
387
390
|
})(BinTrieFlags || (BinTrieFlags = {}));
|
391
|
+
var EntityDecoderState;
|
392
|
+
(function (EntityDecoderState) {
|
393
|
+
EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
|
394
|
+
EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
|
395
|
+
EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
|
396
|
+
EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
|
397
|
+
EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
|
398
|
+
})(EntityDecoderState || (EntityDecoderState = {}));
|
399
|
+
var DecodingMode;
|
400
|
+
(function (DecodingMode) {
|
401
|
+
/** Entities in text nodes that can end with any character. */
|
402
|
+
DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
|
403
|
+
/** Only allow entities terminated with a semicolon. */
|
404
|
+
DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
|
405
|
+
/** Entities in attributes have limitations on ending characters. */
|
406
|
+
DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
|
407
|
+
})(DecodingMode || (DecodingMode = {}));
|
408
|
+
/**
|
409
|
+
* Determines the branch of the current node that is taken given the current
|
410
|
+
* character. This function is used to traverse the trie.
|
411
|
+
*
|
412
|
+
* @param decodeTree The trie.
|
413
|
+
* @param current The current node.
|
414
|
+
* @param nodeIdx The index right after the current node and its value.
|
415
|
+
* @param char The current character.
|
416
|
+
* @returns The index of the next node, or -1 if no branch is taken.
|
417
|
+
*/
|
388
418
|
function determineBranch(decodeTree, current, nodeIdx, char) {
|
389
419
|
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
390
420
|
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|