vite 7.2.0-beta.1 → 7.2.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/dist/client/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.96.0/helpers/typeof.js
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -11,7 +11,7 @@ function _typeof(o) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.96.0/helpers/toPrimitive.js
|
|
15
15
|
function toPrimitive(t, r) {
|
|
16
16
|
if ("object" != _typeof(t) || !t) return t;
|
|
17
17
|
var e = t[Symbol.toPrimitive];
|
|
@@ -24,14 +24,14 @@ function toPrimitive(t, r) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.96.0/helpers/toPropertyKey.js
|
|
28
28
|
function toPropertyKey(t) {
|
|
29
29
|
var i = toPrimitive(t, "string");
|
|
30
30
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
+
//#region \0@oxc-project+runtime@0.96.0/helpers/defineProperty.js
|
|
35
35
|
function _defineProperty(e, r, t) {
|
|
36
36
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
37
37
|
value: t,
|
|
@@ -188,6 +188,7 @@ var require_src$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-
|
|
|
188
188
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js
|
|
189
189
|
var require_Parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js": ((exports) => {
|
|
190
190
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
191
|
+
exports.default = void 0;
|
|
191
192
|
var _icssUtils = require_src$4();
|
|
192
193
|
const importRegexp = /^:import\((.+)\)$/;
|
|
193
194
|
var Parser$1 = class {
|
|
@@ -955,6 +956,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
955
956
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
956
957
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js": ((exports) => {
|
|
957
958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
959
|
+
exports.default = void 0;
|
|
958
960
|
var _postcss$1 = _interopRequireDefault$21(__require("postcss"));
|
|
959
961
|
var _path = _interopRequireDefault$21(__require("path"));
|
|
960
962
|
var _Parser$1 = _interopRequireDefault$21(require_Parser());
|
|
@@ -1746,6 +1748,7 @@ var require_stripComments = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
1746
1748
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js
|
|
1747
1749
|
var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js": ((exports) => {
|
|
1748
1750
|
exports.__esModule = true;
|
|
1751
|
+
exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
|
|
1749
1752
|
var _unesc$1 = _interopRequireDefault$20(require_unesc());
|
|
1750
1753
|
exports.unesc = _unesc$1["default"];
|
|
1751
1754
|
var _getProp = _interopRequireDefault$20(require_getProp());
|
|
@@ -1900,6 +1903,7 @@ var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/post
|
|
|
1900
1903
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
1901
1904
|
var require_types = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js": ((exports) => {
|
|
1902
1905
|
exports.__esModule = true;
|
|
1906
|
+
exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;
|
|
1903
1907
|
var TAG = "tag";
|
|
1904
1908
|
exports.TAG = TAG;
|
|
1905
1909
|
var STRING = "string";
|
|
@@ -2372,6 +2376,7 @@ var require_selector = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/po
|
|
|
2372
2376
|
|
|
2373
2377
|
//#endregion
|
|
2374
2378
|
//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
|
|
2379
|
+
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
|
2375
2380
|
var require_cssesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js": ((exports, module) => {
|
|
2376
2381
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
2377
2382
|
var merge = function merge$1(options, defaults) {
|
|
@@ -2803,6 +2808,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/util-d
|
|
|
2803
2808
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
2804
2809
|
var require_attribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js": ((exports) => {
|
|
2805
2810
|
exports.__esModule = true;
|
|
2811
|
+
exports["default"] = void 0;
|
|
2806
2812
|
exports.unescapeValue = unescapeValue;
|
|
2807
2813
|
var _cssesc = _interopRequireDefault$9(require_cssesc());
|
|
2808
2814
|
var _unesc = _interopRequireDefault$9(require_unesc());
|
|
@@ -3249,6 +3255,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
3249
3255
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
3250
3256
|
var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js": ((exports) => {
|
|
3251
3257
|
exports.__esModule = true;
|
|
3258
|
+
exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;
|
|
3252
3259
|
var ampersand = 38;
|
|
3253
3260
|
exports.ampersand = ampersand;
|
|
3254
3261
|
var asterisk = 42;
|
|
@@ -3317,6 +3324,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3317
3324
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
3318
3325
|
var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js": ((exports) => {
|
|
3319
3326
|
exports.__esModule = true;
|
|
3327
|
+
exports.FIELDS = void 0;
|
|
3320
3328
|
exports["default"] = tokenize;
|
|
3321
3329
|
var t = _interopRequireWildcard$2(require_tokenTypes());
|
|
3322
3330
|
var _unescapable, _wordDelimiters;
|
|
@@ -4509,6 +4517,7 @@ var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p
|
|
|
4509
4517
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
4510
4518
|
var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js": ((exports) => {
|
|
4511
4519
|
exports.__esModule = true;
|
|
4520
|
+
exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;
|
|
4512
4521
|
var _attribute = _interopRequireDefault$3(require_attribute());
|
|
4513
4522
|
var _className = _interopRequireDefault$3(require_className());
|
|
4514
4523
|
var _combinator = _interopRequireDefault$3(require_combinator());
|
|
@@ -4578,11 +4587,16 @@ var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4578
4587
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
4579
4588
|
var require_guards = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js": ((exports) => {
|
|
4580
4589
|
exports.__esModule = true;
|
|
4590
|
+
exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
|
|
4581
4591
|
exports.isContainer = isContainer;
|
|
4592
|
+
exports.isIdentifier = void 0;
|
|
4582
4593
|
exports.isNamespace = isNamespace;
|
|
4594
|
+
exports.isNesting = void 0;
|
|
4583
4595
|
exports.isNode = isNode;
|
|
4596
|
+
exports.isPseudo = void 0;
|
|
4584
4597
|
exports.isPseudoClass = isPseudoClass;
|
|
4585
4598
|
exports.isPseudoElement = isPseudoElement;
|
|
4599
|
+
exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;
|
|
4586
4600
|
var _types$1 = require_types();
|
|
4587
4601
|
var _IS_TYPE;
|
|
4588
4602
|
var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types$1.ATTRIBUTE] = true, _IS_TYPE[_types$1.CLASS] = true, _IS_TYPE[_types$1.COMBINATOR] = true, _IS_TYPE[_types$1.COMMENT] = true, _IS_TYPE[_types$1.ID] = true, _IS_TYPE[_types$1.NESTING] = true, _IS_TYPE[_types$1.PSEUDO] = true, _IS_TYPE[_types$1.ROOT] = true, _IS_TYPE[_types$1.SELECTOR] = true, _IS_TYPE[_types$1.STRING] = true, _IS_TYPE[_types$1.TAG] = true, _IS_TYPE[_types$1.UNIVERSAL] = true, _IS_TYPE);
|
|
@@ -5370,6 +5384,7 @@ var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
|
|
|
5370
5384
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js
|
|
5371
5385
|
var require_scoping = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js": ((exports) => {
|
|
5372
5386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5387
|
+
exports.behaviours = void 0;
|
|
5373
5388
|
exports.getDefaultPlugins = getDefaultPlugins;
|
|
5374
5389
|
exports.getDefaultScopeBehaviour = getDefaultScopeBehaviour;
|
|
5375
5390
|
exports.getScopedNameGenerator = getScopedNameGenerator;
|
|
@@ -7303,7 +7303,7 @@ function hasESMSyntax(code, opts = {}) {
|
|
|
7303
7303
|
}
|
|
7304
7304
|
|
|
7305
7305
|
//#endregion
|
|
7306
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.
|
|
7306
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.46/node_modules/@rolldown/pluginutils/dist/simple-filters.js
|
|
7307
7307
|
/**
|
|
7308
7308
|
* Constructs a RegExp that matches the exact string specified.
|
|
7309
7309
|
*
|
|
@@ -9034,6 +9034,13 @@ function svgToDataURL(content) {
|
|
|
9034
9034
|
|
|
9035
9035
|
//#endregion
|
|
9036
9036
|
//#region src/node/plugins/json.ts
|
|
9037
|
+
/**
|
|
9038
|
+
* https://github.com/rollup/plugins/blob/master/packages/json/src/index.js
|
|
9039
|
+
*
|
|
9040
|
+
* This source code is licensed under the MIT license found in the
|
|
9041
|
+
* LICENSE file at
|
|
9042
|
+
* https://github.com/rollup/plugins/blob/master/LICENSE
|
|
9043
|
+
*/
|
|
9037
9044
|
const jsonExtRE = /\.json(?:$|\?)(?!commonjs-(?:proxy|external))/;
|
|
9038
9045
|
const jsonObjRE = /^\s*\{/;
|
|
9039
9046
|
const jsonLangRE = new RegExp(`\\.(?:json|json5)(?:$|\\?)`);
|
|
@@ -10165,6 +10172,11 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@
|
|
|
10165
10172
|
|
|
10166
10173
|
//#endregion
|
|
10167
10174
|
//#region ../../node_modules/.pnpm/encodeurl@1.0.2/node_modules/encodeurl/index.js
|
|
10175
|
+
/*!
|
|
10176
|
+
* encodeurl
|
|
10177
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
10178
|
+
* MIT Licensed
|
|
10179
|
+
*/
|
|
10168
10180
|
var require_encodeurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/encodeurl@1.0.2/node_modules/encodeurl/index.js": ((exports, module) => {
|
|
10169
10181
|
/**
|
|
10170
10182
|
* Module exports.
|
|
@@ -10211,6 +10223,13 @@ var require_encodeurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/e
|
|
|
10211
10223
|
|
|
10212
10224
|
//#endregion
|
|
10213
10225
|
//#region ../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js
|
|
10226
|
+
/*!
|
|
10227
|
+
* escape-html
|
|
10228
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
10229
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
10230
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
10231
|
+
* MIT Licensed
|
|
10232
|
+
*/
|
|
10214
10233
|
var require_escape_html = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js": ((exports, module) => {
|
|
10215
10234
|
/**
|
|
10216
10235
|
* Module variables.
|
|
@@ -10266,6 +10285,11 @@ var require_escape_html = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
10266
10285
|
|
|
10267
10286
|
//#endregion
|
|
10268
10287
|
//#region ../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js
|
|
10288
|
+
/*!
|
|
10289
|
+
* ee-first
|
|
10290
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
10291
|
+
* MIT Licensed
|
|
10292
|
+
*/
|
|
10269
10293
|
var require_ee_first = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js": ((exports, module) => {
|
|
10270
10294
|
/**
|
|
10271
10295
|
* Module exports.
|
|
@@ -10331,6 +10355,12 @@ var require_ee_first = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ee
|
|
|
10331
10355
|
|
|
10332
10356
|
//#endregion
|
|
10333
10357
|
//#region ../../node_modules/.pnpm/on-finished@2.3.0/node_modules/on-finished/index.js
|
|
10358
|
+
/*!
|
|
10359
|
+
* on-finished
|
|
10360
|
+
* Copyright(c) 2013 Jonathan Ong
|
|
10361
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
10362
|
+
* MIT Licensed
|
|
10363
|
+
*/
|
|
10334
10364
|
var require_on_finished = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/on-finished@2.3.0/node_modules/on-finished/index.js": ((exports, module) => {
|
|
10335
10365
|
/**
|
|
10336
10366
|
* Module exports.
|
|
@@ -10471,6 +10501,12 @@ var require_on_finished = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
10471
10501
|
|
|
10472
10502
|
//#endregion
|
|
10473
10503
|
//#region ../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js
|
|
10504
|
+
/*!
|
|
10505
|
+
* parseurl
|
|
10506
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
10507
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
10508
|
+
* MIT Licensed
|
|
10509
|
+
*/
|
|
10474
10510
|
var require_parseurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js": ((exports, module) => {
|
|
10475
10511
|
/**
|
|
10476
10512
|
* Module dependencies.
|
|
@@ -10642,6 +10678,12 @@ var require_codes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statu
|
|
|
10642
10678
|
|
|
10643
10679
|
//#endregion
|
|
10644
10680
|
//#region ../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js
|
|
10681
|
+
/*!
|
|
10682
|
+
* statuses
|
|
10683
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
10684
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
10685
|
+
* MIT Licensed
|
|
10686
|
+
*/
|
|
10645
10687
|
var require_statuses = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js": ((exports, module) => {
|
|
10646
10688
|
/**
|
|
10647
10689
|
* Module dependencies.
|
|
@@ -10722,6 +10764,11 @@ var require_statuses = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/st
|
|
|
10722
10764
|
|
|
10723
10765
|
//#endregion
|
|
10724
10766
|
//#region ../../node_modules/.pnpm/unpipe@1.0.0/node_modules/unpipe/index.js
|
|
10767
|
+
/*!
|
|
10768
|
+
* unpipe
|
|
10769
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
10770
|
+
* MIT Licensed
|
|
10771
|
+
*/
|
|
10725
10772
|
var require_unpipe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/unpipe@1.0.0/node_modules/unpipe/index.js": ((exports, module) => {
|
|
10726
10773
|
/**
|
|
10727
10774
|
* Module exports.
|
|
@@ -10762,6 +10809,11 @@ var require_unpipe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/unpi
|
|
|
10762
10809
|
|
|
10763
10810
|
//#endregion
|
|
10764
10811
|
//#region ../../node_modules/.pnpm/finalhandler@1.1.2/node_modules/finalhandler/index.js
|
|
10812
|
+
/*!
|
|
10813
|
+
* finalhandler
|
|
10814
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
10815
|
+
* MIT Licensed
|
|
10816
|
+
*/
|
|
10765
10817
|
var require_finalhandler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/finalhandler@1.1.2/node_modules/finalhandler/index.js": ((exports, module) => {
|
|
10766
10818
|
/**
|
|
10767
10819
|
* Module dependencies.
|
|
@@ -10999,6 +11051,13 @@ var require_utils_merge = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
10999
11051
|
|
|
11000
11052
|
//#endregion
|
|
11001
11053
|
//#region ../../node_modules/.pnpm/connect@3.7.0/node_modules/connect/index.js
|
|
11054
|
+
/*!
|
|
11055
|
+
* connect
|
|
11056
|
+
* Copyright(c) 2010 Sencha Inc.
|
|
11057
|
+
* Copyright(c) 2011 TJ Holowaychuk
|
|
11058
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11059
|
+
* MIT Licensed
|
|
11060
|
+
*/
|
|
11002
11061
|
var require_connect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/connect@3.7.0/node_modules/connect/index.js": ((exports, module) => {
|
|
11003
11062
|
/**
|
|
11004
11063
|
* Module dependencies.
|
|
@@ -11203,6 +11262,11 @@ var require_connect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/con
|
|
|
11203
11262
|
|
|
11204
11263
|
//#endregion
|
|
11205
11264
|
//#region ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
|
|
11265
|
+
/*
|
|
11266
|
+
object-assign
|
|
11267
|
+
(c) Sindre Sorhus
|
|
11268
|
+
@license MIT
|
|
11269
|
+
*/
|
|
11206
11270
|
var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js": ((exports, module) => {
|
|
11207
11271
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
11208
11272
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -11250,6 +11314,11 @@ var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
11250
11314
|
|
|
11251
11315
|
//#endregion
|
|
11252
11316
|
//#region ../../node_modules/.pnpm/vary@1.1.2/node_modules/vary/index.js
|
|
11317
|
+
/*!
|
|
11318
|
+
* vary
|
|
11319
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
11320
|
+
* MIT Licensed
|
|
11321
|
+
*/
|
|
11253
11322
|
var require_vary = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/vary@1.1.2/node_modules/vary/index.js": ((exports, module) => {
|
|
11254
11323
|
/**
|
|
11255
11324
|
* Module exports.
|
|
@@ -12120,6 +12189,12 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/b
|
|
|
12120
12189
|
|
|
12121
12190
|
//#endregion
|
|
12122
12191
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
12192
|
+
/*!
|
|
12193
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
12194
|
+
*
|
|
12195
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
12196
|
+
* Released under the MIT License.
|
|
12197
|
+
*/
|
|
12123
12198
|
var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js": ((exports, module) => {
|
|
12124
12199
|
module.exports = function(num) {
|
|
12125
12200
|
if (typeof num === "number") return num - num === 0;
|
|
@@ -12130,6 +12205,12 @@ var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/i
|
|
|
12130
12205
|
|
|
12131
12206
|
//#endregion
|
|
12132
12207
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
12208
|
+
/*!
|
|
12209
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
12210
|
+
*
|
|
12211
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
12212
|
+
* Released under the MIT License.
|
|
12213
|
+
*/
|
|
12133
12214
|
var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js": ((exports, module) => {
|
|
12134
12215
|
const isNumber$1 = require_is_number();
|
|
12135
12216
|
const toRegexRange$1 = (min$1, max, options$1) => {
|
|
@@ -12324,6 +12405,12 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
12324
12405
|
|
|
12325
12406
|
//#endregion
|
|
12326
12407
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
12408
|
+
/*!
|
|
12409
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
12410
|
+
*
|
|
12411
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
12412
|
+
* Licensed under the MIT License.
|
|
12413
|
+
*/
|
|
12327
12414
|
var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": ((exports, module) => {
|
|
12328
12415
|
const util = __require("util");
|
|
12329
12416
|
const toRegexRange = require_to_regex_range();
|
|
@@ -17026,6 +17113,15 @@ var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
17026
17113
|
|
|
17027
17114
|
//#endregion
|
|
17028
17115
|
//#region src/node/server/openBrowser.ts
|
|
17116
|
+
/**
|
|
17117
|
+
* The following is modified based on source found in
|
|
17118
|
+
* https://github.com/facebook/create-react-app
|
|
17119
|
+
*
|
|
17120
|
+
* MIT Licensed
|
|
17121
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
17122
|
+
* https://github.com/facebook/create-react-app/blob/main/LICENSE
|
|
17123
|
+
*
|
|
17124
|
+
*/
|
|
17029
17125
|
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
17030
17126
|
var import_picocolors$24 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
17031
17127
|
/**
|
|
@@ -21286,6 +21382,7 @@ var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
21286
21382
|
};
|
|
21287
21383
|
})();
|
|
21288
21384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21385
|
+
exports.OUTGOING_PASSES = void 0;
|
|
21289
21386
|
exports.removeChunked = removeChunked;
|
|
21290
21387
|
exports.setConnection = setConnection;
|
|
21291
21388
|
exports.setRedirectHostRewrite = setRedirectHostRewrite;
|
|
@@ -21843,6 +21940,7 @@ var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
21843
21940
|
};
|
|
21844
21941
|
})();
|
|
21845
21942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21943
|
+
exports.WEB_PASSES = void 0;
|
|
21846
21944
|
exports.deleteLength = deleteLength;
|
|
21847
21945
|
exports.timeout = timeout;
|
|
21848
21946
|
exports.XHeaders = XHeaders$1;
|
|
@@ -21990,6 +22088,7 @@ var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
21990
22088
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
21991
22089
|
};
|
|
21992
22090
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22091
|
+
exports.WS_PASSES = void 0;
|
|
21993
22092
|
exports.numOpenSockets = numOpenSockets;
|
|
21994
22093
|
exports.checkMethodAndHeader = checkMethodAndHeader;
|
|
21995
22094
|
exports.XHeaders = XHeaders;
|
|
@@ -22199,6 +22298,7 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
22199
22298
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
22200
22299
|
};
|
|
22201
22300
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22301
|
+
exports.ProxyServer = void 0;
|
|
22202
22302
|
const http = __importStar(__require("node:http"));
|
|
22203
22303
|
const http2 = __importStar(__require("node:http2"));
|
|
22204
22304
|
const web_incoming_1 = require_web_incoming();
|
|
@@ -22567,6 +22667,11 @@ function htmlFallbackMiddleware(root, spaFallback) {
|
|
|
22567
22667
|
|
|
22568
22668
|
//#endregion
|
|
22569
22669
|
//#region ../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js
|
|
22670
|
+
/*!
|
|
22671
|
+
* etag
|
|
22672
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
22673
|
+
* MIT Licensed
|
|
22674
|
+
*/
|
|
22570
22675
|
var require_etag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js": ((exports, module) => {
|
|
22571
22676
|
/**
|
|
22572
22677
|
* Module exports.
|
|
@@ -29021,6 +29126,35 @@ const viteAliasCustomResolver = async function(id, importer, options$1) {
|
|
|
29021
29126
|
|
|
29022
29127
|
//#endregion
|
|
29023
29128
|
//#region src/node/server/pluginContainer.ts
|
|
29129
|
+
/**
|
|
29130
|
+
* This file is refactored into TypeScript based on
|
|
29131
|
+
* https://github.com/preactjs/wmr/blob/main/packages/wmr/src/lib/rollup-plugin-container.js
|
|
29132
|
+
*/
|
|
29133
|
+
/**
|
|
29134
|
+
https://github.com/preactjs/wmr/blob/master/LICENSE
|
|
29135
|
+
|
|
29136
|
+
MIT License
|
|
29137
|
+
|
|
29138
|
+
Copyright (c) 2020 The Preact Authors
|
|
29139
|
+
|
|
29140
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
29141
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
29142
|
+
in the Software without restriction, including without limitation the rights
|
|
29143
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
29144
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
29145
|
+
furnished to do so, subject to the following conditions:
|
|
29146
|
+
|
|
29147
|
+
The above copyright notice and this permission notice shall be included in all
|
|
29148
|
+
copies or substantial portions of the Software.
|
|
29149
|
+
|
|
29150
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29151
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29152
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
29153
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29154
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29155
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29156
|
+
SOFTWARE.
|
|
29157
|
+
*/
|
|
29024
29158
|
var import_picocolors$11 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
29025
29159
|
const EMPTY_OBJECT = Object.freeze({});
|
|
29026
29160
|
const debugSourcemapCombineFilter = process.env.DEBUG_VITE_SOURCEMAP_COMBINE_FILTER;
|
|
@@ -30952,8 +31086,8 @@ function loadPreprocessorPath(lang, root) {
|
|
|
30952
31086
|
const installCommand = getPackageManagerCommand("install");
|
|
30953
31087
|
throw new Error(`Preprocessor dependency "${lang}" not found. Did you install it? Try \`${installCommand} -D ${lang}\`.`);
|
|
30954
31088
|
}
|
|
30955
|
-
function loadSassPackage(root) {
|
|
30956
|
-
try {
|
|
31089
|
+
function loadSassPackage(root, skipEmbedded = false) {
|
|
31090
|
+
if (!skipEmbedded) try {
|
|
30957
31091
|
return {
|
|
30958
31092
|
name: "sass-embedded",
|
|
30959
31093
|
path: loadPreprocessorPath("sass-embedded", root)
|
|
@@ -30968,6 +31102,10 @@ function loadSassPackage(root) {
|
|
|
30968
31102
|
throw e1;
|
|
30969
31103
|
}
|
|
30970
31104
|
}
|
|
31105
|
+
return {
|
|
31106
|
+
name: "sass",
|
|
31107
|
+
path: loadPreprocessorPath(PreprocessLang.sass, root)
|
|
31108
|
+
};
|
|
30971
31109
|
}
|
|
30972
31110
|
let cachedSss;
|
|
30973
31111
|
async function loadSss(root) {
|
|
@@ -31033,12 +31171,24 @@ const makeScssWorker = (environment, resolvers, _maxWorkers) => {
|
|
|
31033
31171
|
};
|
|
31034
31172
|
const scssProcessor = (maxWorkers) => {
|
|
31035
31173
|
let worker;
|
|
31174
|
+
let failedSassEmbedded;
|
|
31036
31175
|
return {
|
|
31037
31176
|
close() {
|
|
31038
31177
|
worker?.stop();
|
|
31039
31178
|
},
|
|
31040
31179
|
async process(environment, source, root, options$1, resolvers) {
|
|
31041
|
-
|
|
31180
|
+
let sassPackage = loadSassPackage(root, failedSassEmbedded ?? false);
|
|
31181
|
+
if (failedSassEmbedded === void 0) {
|
|
31182
|
+
failedSassEmbedded = false;
|
|
31183
|
+
try {
|
|
31184
|
+
await import(sassPackage.path);
|
|
31185
|
+
} catch (e$1) {
|
|
31186
|
+
if (/sass-embedded-[a-z0-9]+-[a-z0-9]+/i.test(e$1.message)) {
|
|
31187
|
+
failedSassEmbedded = true;
|
|
31188
|
+
sassPackage = loadSassPackage(root, failedSassEmbedded);
|
|
31189
|
+
}
|
|
31190
|
+
}
|
|
31191
|
+
}
|
|
31042
31192
|
worker ??= makeScssWorker(environment, resolvers, maxWorkers);
|
|
31043
31193
|
const { content: data, map: additionalMap } = await getSource(source, options$1.filename, options$1.additionalData, options$1.enableSourcemap);
|
|
31044
31194
|
const optionsWithoutAdditionalData = {
|
|
@@ -35246,7 +35396,14 @@ var DevEnvironment = class extends BaseEnvironment {
|
|
|
35246
35396
|
return this.fetchModule(id, importer, options$2);
|
|
35247
35397
|
},
|
|
35248
35398
|
getBuiltins: async () => {
|
|
35249
|
-
return this.config.resolve.builtins
|
|
35399
|
+
return this.config.resolve.builtins.map((builtin) => typeof builtin === "string" ? {
|
|
35400
|
+
type: "string",
|
|
35401
|
+
value: builtin
|
|
35402
|
+
} : {
|
|
35403
|
+
type: "RegExp",
|
|
35404
|
+
source: builtin.source,
|
|
35405
|
+
flags: builtin.flags
|
|
35406
|
+
});
|
|
35250
35407
|
}
|
|
35251
35408
|
});
|
|
35252
35409
|
this.hot.on("vite:invalidate", async ({ path: path$13, message, firstInvalidatedBy }) => {
|
|
@@ -53,7 +53,14 @@ interface ViteFetchResult {
|
|
|
53
53
|
}
|
|
54
54
|
type InvokeMethods = {
|
|
55
55
|
fetchModule: (id: string, importer?: string, options?: FetchFunctionOptions) => Promise<FetchResult>;
|
|
56
|
-
getBuiltins: () => Promise<
|
|
56
|
+
getBuiltins: () => Promise<Array<{
|
|
57
|
+
type: "string";
|
|
58
|
+
value: string;
|
|
59
|
+
} | {
|
|
60
|
+
type: "RegExp";
|
|
61
|
+
source: string;
|
|
62
|
+
flags: string;
|
|
63
|
+
}>>;
|
|
57
64
|
};
|
|
58
65
|
//#endregion
|
|
59
66
|
//#region src/shared/moduleRunnerTransport.d.ts
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2716,7 +2716,7 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
|
|
|
2716
2716
|
resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
|
|
2717
2717
|
attributes: Record<string, string>;
|
|
2718
2718
|
custom?: CustomPluginOptions;
|
|
2719
|
-
ssr?: boolean;
|
|
2719
|
+
ssr?: boolean | undefined;
|
|
2720
2720
|
|
|
2721
2721
|
isEntry: boolean;
|
|
2722
2722
|
}) => Promise<ResolveIdResult> | ResolveIdResult, {
|
|
@@ -2725,14 +2725,14 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
|
|
|
2725
2725
|
};
|
|
2726
2726
|
}>;
|
|
2727
2727
|
load?: ObjectHook<(this: PluginContext, id: string, options?: {
|
|
2728
|
-
ssr?: boolean;
|
|
2728
|
+
ssr?: boolean | undefined;
|
|
2729
2729
|
}) => Promise<LoadResult> | LoadResult, {
|
|
2730
2730
|
filter?: {
|
|
2731
2731
|
id?: StringFilter;
|
|
2732
2732
|
};
|
|
2733
2733
|
}>;
|
|
2734
2734
|
transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
|
|
2735
|
-
ssr?: boolean;
|
|
2735
|
+
ssr?: boolean | undefined;
|
|
2736
2736
|
}) => Promise<Rollup.TransformResult> | Rollup.TransformResult, {
|
|
2737
2737
|
filter?: {
|
|
2738
2738
|
id?: StringFilter;
|
|
@@ -1070,7 +1070,7 @@ var ModuleRunner = class {
|
|
|
1070
1070
|
if (!this.isBuiltin) return this.builtinsPromise ??= (async () => {
|
|
1071
1071
|
try {
|
|
1072
1072
|
this.debug?.("[module runner] fetching builtins from server");
|
|
1073
|
-
let builtins = await this.transport.invoke("getBuiltins", []);
|
|
1073
|
+
let builtins = (await this.transport.invoke("getBuiltins", [])).map((builtin) => typeof builtin == "object" && builtin && "type" in builtin ? builtin.type === "string" ? builtin.value : new RegExp(builtin.source, builtin.flags) : builtin);
|
|
1074
1074
|
this.isBuiltin = createIsBuiltin(builtins), this.debug?.("[module runner] builtins loaded:", builtins);
|
|
1075
1075
|
} finally {
|
|
1076
1076
|
this.builtinsPromise = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
"postcss-modules": "^6.0.1",
|
|
125
125
|
"premove": "^4.0.0",
|
|
126
126
|
"resolve.exports": "^2.0.3",
|
|
127
|
-
"rolldown": "^1.0.0-beta.
|
|
128
|
-
"rolldown-plugin-dts": "^0.17.
|
|
127
|
+
"rolldown": "^1.0.0-beta.46",
|
|
128
|
+
"rolldown-plugin-dts": "^0.17.3",
|
|
129
129
|
"rollup-plugin-license": "^3.6.0",
|
|
130
130
|
"sass": "^1.93.2",
|
|
131
131
|
"sass-embedded": "^1.93.2",
|