vite 6.0.0-alpha.17 → 6.0.0-alpha.19
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 +4 -0
- package/dist/client/client.mjs +614 -612
- package/dist/client/env.mjs +18 -24
- package/dist/node/chunks/{dep-DVlS5vGL.js → dep-BWEMV5Th.js} +44780 -46989
- package/dist/node/chunks/{dep-CrWVpuYf.js → dep-D-7KCb9p.js} +32 -2
- package/dist/node/chunks/{dep-DJVII9WQ.js → dep-MbEgMyUv.js} +12 -16
- package/dist/node/chunks/{dep-CNsiFGD3.js → dep-bCS_cgqC.js} +1 -1
- package/dist/node/cli.js +253 -263
- package/dist/node/constants.js +105 -108
- package/dist/node/index.d.ts +157 -108
- package/dist/node/index.js +125 -143
- package/dist/node/module-runner.d.ts +21 -7
- package/dist/node/module-runner.js +201 -151
- package/dist/node-cjs/publicUtils.cjs +538 -625
- package/package.json +20 -23
- package/types/customEvent.d.ts +1 -0
- 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;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { K as commonjsGlobal, J as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { K as commonjsGlobal, J as getDefaultExportFromCjs } from './dep-BWEMV5Th.js';
|
2
2
|
import require$$0__default from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
5
5
|
import require$$3 from 'crypto';
|
6
|
-
import require$$
|
6
|
+
import require$$0$2 from 'util';
|
7
7
|
import { l as lib } from './dep-IQS-Za7F.js';
|
8
8
|
|
9
9
|
import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
|
@@ -561,10 +561,6 @@ var root$2 = freeGlobal || freeSelf || Function('return this')();
|
|
561
561
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
562
562
|
var index = -1,
|
563
563
|
length = array ? array.length : 0;
|
564
|
-
|
565
|
-
if (initAccum && length) {
|
566
|
-
accumulator = array[++index];
|
567
|
-
}
|
568
564
|
while (++index < length) {
|
569
565
|
accumulator = iteratee(accumulator, array[index], index, array);
|
570
566
|
}
|
@@ -977,7 +973,7 @@ var upperFirst = createCaseFirst('toUpperCase');
|
|
977
973
|
*/
|
978
974
|
function words(string, pattern, guard) {
|
979
975
|
string = toString(string);
|
980
|
-
pattern =
|
976
|
+
pattern = pattern;
|
981
977
|
|
982
978
|
if (pattern === undefined) {
|
983
979
|
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
@@ -2437,7 +2433,7 @@ function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : {
|
|
2437
2433
|
|
2438
2434
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
2439
2435
|
|
2440
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
2436
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
2441
2437
|
|
2442
2438
|
var cloneNode = function cloneNode(obj, parent) {
|
2443
2439
|
if (typeof obj !== 'object' || obj === null) {
|
@@ -2715,7 +2711,7 @@ types.UNIVERSAL = UNIVERSAL;
|
|
2715
2711
|
|
2716
2712
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
2717
2713
|
|
2718
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
2714
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
2719
2715
|
|
2720
2716
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
2721
2717
|
|
@@ -2723,7 +2719,7 @@ types.UNIVERSAL = UNIVERSAL;
|
|
2723
2719
|
|
2724
2720
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
2725
2721
|
|
2726
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
2722
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
2727
2723
|
|
2728
2724
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
2729
2725
|
|
@@ -3112,7 +3108,7 @@ var containerExports = container.exports;
|
|
3112
3108
|
|
3113
3109
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
3114
3110
|
|
3115
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
3111
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
3116
3112
|
|
3117
3113
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
3118
3114
|
|
@@ -3328,7 +3324,7 @@ var cssesc_1 = cssesc;
|
|
3328
3324
|
|
3329
3325
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
3330
3326
|
|
3331
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
3327
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
3332
3328
|
|
3333
3329
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
3334
3330
|
|
@@ -3483,7 +3479,7 @@ var namespace = {exports: {}};
|
|
3483
3479
|
|
3484
3480
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
3485
3481
|
|
3486
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
3482
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
3487
3483
|
|
3488
3484
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
3489
3485
|
|
@@ -3694,7 +3690,7 @@ var attribute$1 = {};
|
|
3694
3690
|
* For Node.js, simply re-export the core `util.deprecate` function.
|
3695
3691
|
*/
|
3696
3692
|
|
3697
|
-
var node = require$$
|
3693
|
+
var node = require$$0$2.deprecate;
|
3698
3694
|
|
3699
3695
|
(function (exports) {
|
3700
3696
|
|
@@ -3716,7 +3712,7 @@ var node = require$$3$1.deprecate;
|
|
3716
3712
|
|
3717
3713
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
3718
3714
|
|
3719
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
3715
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
3720
3716
|
|
3721
3717
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
3722
3718
|
|
@@ -4787,7 +4783,7 @@ tokenTypes.combinator = combinator$1;
|
|
4787
4783
|
|
4788
4784
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
4789
4785
|
|
4790
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
4786
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
4791
4787
|
|
4792
4788
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
4793
4789
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|