vite 7.2.4 → 8.0.0-beta.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/LICENSE.md +55 -90
- package/dist/client/client.mjs +4 -4
- package/dist/node/chunks/build.js +1 -1
- package/dist/node/chunks/build2.js +123 -123
- package/dist/node/chunks/chunk.js +26 -9
- package/dist/node/chunks/config.js +3 -36618
- package/dist/node/chunks/lib.js +11 -11
- package/dist/node/chunks/logger.js +10 -14
- package/dist/node/chunks/node.js +35583 -0
- package/dist/node/chunks/optimizer.js +1 -1
- package/dist/node/chunks/postcss-import.js +21 -21
- package/dist/node/chunks/preview.js +1 -1
- package/dist/node/chunks/server.js +1 -1
- package/dist/node/cli.js +3 -3
- package/dist/node/index.d.ts +199 -41
- package/dist/node/index.js +2 -28
- package/dist/node/internal.d.ts +2 -0
- package/dist/node/internal.js +3 -0
- package/package.json +18 -25
- package/types/customEvent.d.ts +1 -1
- package/types/hot.d.ts +1 -1
- package/types/importMeta.d.ts +2 -2
- package/types/internal/esbuildOptions.d.ts +28 -0
- package/types/internal/rollupTypeCompat.d.ts +24 -0
- package/types/metadata.d.ts +6 -1
- package/dist/node/chunks/config2.js +0 -4
- package/types/package.json +0 -4
package/LICENSE.md
CHANGED
|
@@ -127,15 +127,11 @@ Repository: https://github.com/rolldown/rolldown
|
|
|
127
127
|
|
|
128
128
|
---------------------------------------
|
|
129
129
|
|
|
130
|
-
## @rollup/plugin-alias, @rollup/plugin-
|
|
130
|
+
## @rollup/plugin-alias, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils
|
|
131
131
|
License: MIT
|
|
132
132
|
By: Johannes Stein
|
|
133
133
|
Repository: https://github.com/rollup/plugins
|
|
134
134
|
|
|
135
|
-
License: MIT
|
|
136
|
-
By: Rich Harris
|
|
137
|
-
Repository: https://github.com/rollup/plugins
|
|
138
|
-
|
|
139
135
|
License: MIT
|
|
140
136
|
By: LarsDenBakker
|
|
141
137
|
Repository: https://github.com/rollup/plugins
|
|
@@ -351,38 +347,6 @@ Repository: https://github.com/paulmillr/chokidar
|
|
|
351
347
|
|
|
352
348
|
---------------------------------------
|
|
353
349
|
|
|
354
|
-
## commondir, shell-quote
|
|
355
|
-
License: MIT
|
|
356
|
-
By: James Halliday
|
|
357
|
-
Repositories: http://github.com/substack/node-commondir, http://github.com/ljharb/shell-quote
|
|
358
|
-
|
|
359
|
-
> The MIT License
|
|
360
|
-
>
|
|
361
|
-
> Copyright (c) 2013 James Halliday (mail@substack.net)
|
|
362
|
-
>
|
|
363
|
-
> Permission is hereby granted, free of charge,
|
|
364
|
-
> to any person obtaining a copy of this software and
|
|
365
|
-
> associated documentation files (the "Software"), to
|
|
366
|
-
> deal in the Software without restriction, including
|
|
367
|
-
> without limitation the rights to use, copy, modify,
|
|
368
|
-
> merge, publish, distribute, sublicense, and/or sell
|
|
369
|
-
> copies of the Software, and to permit persons to whom
|
|
370
|
-
> the Software is furnished to do so,
|
|
371
|
-
> subject to the following conditions:
|
|
372
|
-
>
|
|
373
|
-
> The above copyright notice and this permission notice
|
|
374
|
-
> shall be included in all copies or substantial portions of the Software.
|
|
375
|
-
>
|
|
376
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
377
|
-
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
378
|
-
> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
379
|
-
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
380
|
-
> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
381
|
-
> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
382
|
-
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
383
|
-
|
|
384
|
-
---------------------------------------
|
|
385
|
-
|
|
386
350
|
## connect
|
|
387
351
|
License: MIT
|
|
388
352
|
By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell
|
|
@@ -534,33 +498,6 @@ Repository: https://github.com/mathiasbynens/cssesc
|
|
|
534
498
|
|
|
535
499
|
---------------------------------------
|
|
536
500
|
|
|
537
|
-
## debug
|
|
538
|
-
License: MIT
|
|
539
|
-
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
|
|
540
|
-
Repository: https://github.com/debug-js/debug
|
|
541
|
-
|
|
542
|
-
> (The MIT License)
|
|
543
|
-
>
|
|
544
|
-
> Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
545
|
-
> Copyright (c) 2018-2021 Josh Junon
|
|
546
|
-
>
|
|
547
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
548
|
-
> and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
549
|
-
> including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
550
|
-
> and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
551
|
-
> subject to the following conditions:
|
|
552
|
-
>
|
|
553
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
554
|
-
> portions of the Software.
|
|
555
|
-
>
|
|
556
|
-
> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
557
|
-
> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
558
|
-
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
559
|
-
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
560
|
-
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
561
|
-
|
|
562
|
-
---------------------------------------
|
|
563
|
-
|
|
564
501
|
## dotenv
|
|
565
502
|
License: BSD-2-Clause
|
|
566
503
|
Repository: https://github.com/motdotla/dotenv
|
|
@@ -1050,13 +987,6 @@ Repository: https://github.com/micromatch/is-glob
|
|
|
1050
987
|
|
|
1051
988
|
---------------------------------------
|
|
1052
989
|
|
|
1053
|
-
## is-reference
|
|
1054
|
-
License: MIT
|
|
1055
|
-
By: Rich Harris
|
|
1056
|
-
Repository: https://github.com/Rich-Harris/is-reference
|
|
1057
|
-
|
|
1058
|
-
---------------------------------------
|
|
1059
|
-
|
|
1060
990
|
## isexe, which
|
|
1061
991
|
License: ISC
|
|
1062
992
|
By: Isaac Z. Schlueter
|
|
@@ -1322,13 +1252,14 @@ Repository: https://github.com/lukeed/mrmime
|
|
|
1322
1252
|
|
|
1323
1253
|
---------------------------------------
|
|
1324
1254
|
|
|
1325
|
-
##
|
|
1255
|
+
## normalize-path
|
|
1326
1256
|
License: MIT
|
|
1327
|
-
|
|
1257
|
+
By: Jon Schlinkert, Blaine Bublitz
|
|
1258
|
+
Repository: https://github.com/jonschlinkert/normalize-path
|
|
1328
1259
|
|
|
1329
1260
|
> The MIT License (MIT)
|
|
1330
1261
|
>
|
|
1331
|
-
> Copyright (c)
|
|
1262
|
+
> Copyright (c) 2014-2018, Jon Schlinkert.
|
|
1332
1263
|
>
|
|
1333
1264
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1334
1265
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1337,27 +1268,27 @@ Repository: https://github.com/vercel/ms
|
|
|
1337
1268
|
> copies of the Software, and to permit persons to whom the Software is
|
|
1338
1269
|
> furnished to do so, subject to the following conditions:
|
|
1339
1270
|
>
|
|
1340
|
-
> The above copyright notice and this permission notice shall be included in
|
|
1341
|
-
> copies or substantial portions of the Software.
|
|
1271
|
+
> The above copyright notice and this permission notice shall be included in
|
|
1272
|
+
> all copies or substantial portions of the Software.
|
|
1342
1273
|
>
|
|
1343
1274
|
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1344
1275
|
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1345
1276
|
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1346
1277
|
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1347
1278
|
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1348
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1349
|
-
> SOFTWARE.
|
|
1279
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1280
|
+
> THE SOFTWARE.
|
|
1350
1281
|
|
|
1351
1282
|
---------------------------------------
|
|
1352
1283
|
|
|
1353
|
-
##
|
|
1284
|
+
## object-assign
|
|
1354
1285
|
License: MIT
|
|
1355
|
-
By:
|
|
1356
|
-
Repository: https://github.com/
|
|
1286
|
+
By: Sindre Sorhus
|
|
1287
|
+
Repository: https://github.com/sindresorhus/object-assign
|
|
1357
1288
|
|
|
1358
1289
|
> The MIT License (MIT)
|
|
1359
1290
|
>
|
|
1360
|
-
> Copyright (c)
|
|
1291
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
1361
1292
|
>
|
|
1362
1293
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1363
1294
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1379,14 +1310,16 @@ Repository: https://github.com/jonschlinkert/normalize-path
|
|
|
1379
1310
|
|
|
1380
1311
|
---------------------------------------
|
|
1381
1312
|
|
|
1382
|
-
##
|
|
1313
|
+
## obug
|
|
1383
1314
|
License: MIT
|
|
1384
|
-
By:
|
|
1385
|
-
Repository: https://github.com/
|
|
1315
|
+
By: Kevin Deng
|
|
1316
|
+
Repository: https://github.com/sxzz/obug
|
|
1386
1317
|
|
|
1387
1318
|
> The MIT License (MIT)
|
|
1388
1319
|
>
|
|
1389
|
-
> Copyright
|
|
1320
|
+
> Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz)
|
|
1321
|
+
> Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
1322
|
+
> Copyright (c) 2018-2021 Josh Junon
|
|
1390
1323
|
>
|
|
1391
1324
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1392
1325
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1395,16 +1328,16 @@ Repository: https://github.com/sindresorhus/object-assign
|
|
|
1395
1328
|
> copies of the Software, and to permit persons to whom the Software is
|
|
1396
1329
|
> furnished to do so, subject to the following conditions:
|
|
1397
1330
|
>
|
|
1398
|
-
> The above copyright notice and this permission notice shall be included in
|
|
1399
|
-
>
|
|
1331
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
1332
|
+
> copies or substantial portions of the Software.
|
|
1400
1333
|
>
|
|
1401
1334
|
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1402
1335
|
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1403
1336
|
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1404
1337
|
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1405
1338
|
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1406
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1407
|
-
>
|
|
1339
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1340
|
+
> SOFTWARE.
|
|
1408
1341
|
|
|
1409
1342
|
---------------------------------------
|
|
1410
1343
|
|
|
@@ -1841,6 +1774,38 @@ Repository: https://github.com/kevva/shebang-command
|
|
|
1841
1774
|
|
|
1842
1775
|
---------------------------------------
|
|
1843
1776
|
|
|
1777
|
+
## shell-quote
|
|
1778
|
+
License: MIT
|
|
1779
|
+
By: James Halliday
|
|
1780
|
+
Repository: http://github.com/ljharb/shell-quote
|
|
1781
|
+
|
|
1782
|
+
> The MIT License
|
|
1783
|
+
>
|
|
1784
|
+
> Copyright (c) 2013 James Halliday (mail@substack.net)
|
|
1785
|
+
>
|
|
1786
|
+
> Permission is hereby granted, free of charge,
|
|
1787
|
+
> to any person obtaining a copy of this software and
|
|
1788
|
+
> associated documentation files (the "Software"), to
|
|
1789
|
+
> deal in the Software without restriction, including
|
|
1790
|
+
> without limitation the rights to use, copy, modify,
|
|
1791
|
+
> merge, publish, distribute, sublicense, and/or sell
|
|
1792
|
+
> copies of the Software, and to permit persons to whom
|
|
1793
|
+
> the Software is furnished to do so,
|
|
1794
|
+
> subject to the following conditions:
|
|
1795
|
+
>
|
|
1796
|
+
> The above copyright notice and this permission notice
|
|
1797
|
+
> shall be included in all copies or substantial portions of the Software.
|
|
1798
|
+
>
|
|
1799
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
1800
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
1801
|
+
> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
1802
|
+
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
1803
|
+
> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
1804
|
+
> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1805
|
+
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1806
|
+
|
|
1807
|
+
---------------------------------------
|
|
1808
|
+
|
|
1844
1809
|
## sirv
|
|
1845
1810
|
License: MIT
|
|
1846
1811
|
By: Luke Edwards
|
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.101.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.101.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.101.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.101.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,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./logger.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as builderOptionsDefaults, B as resolveUserExternal, D as ChunkMetadataMap, E as BuildEnvironment, F as resolveBuildEnvironmentOptions, H as toOutputFilePathInHtml, I as resolveBuildOutputs, L as resolveBuildPlugins, M as createToImportMetaURLBasedRelativeRuntime, N as injectEnvironmentToHooks, O as build, P as onRollupLog, R as resolveBuilderOptions, U as toOutputFilePathInJS, V as toOutputFilePathInCss, W as toOutputFilePathWithoutRuntime, j as createBuilder, k as buildEnvironmentOptionsDefaults, z as resolveLibFilename } from "./node.js";
|
|
3
3
|
|
|
4
4
|
export { createBuilder, resolveBuildPlugins };
|