vite 2.8.0-beta.2 → 2.8.0-beta.3
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/CHANGELOG.md +30 -0
- package/LICENSE.md +31 -51
- package/bin/vite.js +3 -1
- package/client.d.ts +4 -0
- package/dist/node/chunks/{dep-91aeb93b.js → dep-6f0b746c.js} +1 -1
- package/dist/node/chunks/{dep-a68f5a28.js → dep-84e12b4e.js} +1 -1
- package/dist/node/chunks/{dep-8072b56e.js → dep-885d4c21.js} +2 -3
- package/dist/node/chunks/{dep-8a5fd784.js → dep-a5ab6d86.js} +1754 -395
- package/dist/node/cli.js +4 -5
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.js +1 -2
- package/package.json +3 -3
- package/types/importMeta.d.ts +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# [2.8.0-beta.3](https://github.com/vitejs/vite/compare/v2.8.0-beta.1...v2.8.0-beta.3) (2022-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* avoid referencing importGlob from importMeta.d.ts ([#6531](https://github.com/vitejs/vite/issues/6531)) ([962d285](https://github.com/vitejs/vite/commit/962d28508dce63b395e79b79f3b0e2cf0e381a71))
|
|
7
|
+
* **config:** merge array correctly ([#6499](https://github.com/vitejs/vite/issues/6499)) ([b2d972e](https://github.com/vitejs/vite/commit/b2d972e53b59329695f74e01893b21ec5c136ffd))
|
|
8
|
+
* improve alias merging ([#6497](https://github.com/vitejs/vite/issues/6497)) ([e57d8c6](https://github.com/vitejs/vite/commit/e57d8c63042c2701e797c797b25af65d9dab9eea))
|
|
9
|
+
* improve array config merging ([#6344](https://github.com/vitejs/vite/issues/6344)) ([028cbeb](https://github.com/vitejs/vite/commit/028cbeb34adef217f274be7c4a7dd5c9f9b12b29))
|
|
10
|
+
* merge debug params instead of overwrite ([#6504](https://github.com/vitejs/vite/issues/6504)) ([#6505](https://github.com/vitejs/vite/issues/6505)) ([1ac7fb1](https://github.com/vitejs/vite/commit/1ac7fb19befe4c18a08786038dc1b63325e96835))
|
|
11
|
+
* only run build-html plugin on bundler inputs (fix [#4067](https://github.com/vitejs/vite/issues/4067)) ([#5342](https://github.com/vitejs/vite/issues/5342)) ([7541a8d](https://github.com/vitejs/vite/commit/7541a8d570d9bbf0ab0cd4264cae985dddaf3189))
|
|
12
|
+
* **ssr:** avoid using `tryNodeResolve` on absolute paths ([#6488](https://github.com/vitejs/vite/issues/6488)) ([f346d89](https://github.com/vitejs/vite/commit/f346d89741b3c3a5287ce8b03637e520777d3674))
|
|
13
|
+
* **ssr:** fix resolution for nested ssr externals ([#6080](https://github.com/vitejs/vite/issues/6080)) ([#6470](https://github.com/vitejs/vite/issues/6470)) ([4a764f5](https://github.com/vitejs/vite/commit/4a764f52e4964b02c02f1ce6863ae3454daad55c))
|
|
14
|
+
* **ssr:** handle nameless descture in function args ([#6489](https://github.com/vitejs/vite/issues/6489)) ([debc08d](https://github.com/vitejs/vite/commit/debc08de75434bb63f50e0e5669995de0878ce37))
|
|
15
|
+
* **ssr:** should correctly transfrom identifier in ssr ([#6548](https://github.com/vitejs/vite/issues/6548)) ([15cd975](https://github.com/vitejs/vite/commit/15cd975933f6213d25d004634b3d49eb1630e360))
|
|
16
|
+
* **types:** add missing options parameter to importMeta ([#6433](https://github.com/vitejs/vite/issues/6433)) ([ccf7d79](https://github.com/vitejs/vite/commit/ccf7d791497139951fde58168999d44e18f706ee))
|
|
17
|
+
* **types:** dynamic import in import.meta ([#6456](https://github.com/vitejs/vite/issues/6456)) ([5d7b4c3](https://github.com/vitejs/vite/commit/5d7b4c31b8e44add7c192ae8af4b90b9378ae1fe)), closes [#6433](https://github.com/vitejs/vite/issues/6433)
|
|
18
|
+
* update preview port to 4173 ([#6330](https://github.com/vitejs/vite/issues/6330)) ([870e1c0](https://github.com/vitejs/vite/commit/870e1c076272960a5f390b2cfdd3ae275b3891a5))
|
|
19
|
+
* use cacheDir for resolveHttpsConfig ([#6416](https://github.com/vitejs/vite/issues/6416)) ([647168b](https://github.com/vitejs/vite/commit/647168b2b44b82b1a1cbd8e639f74ddf52a5d5cd))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add .txt file format to assets ([#6265](https://github.com/vitejs/vite/issues/6265)) ([e87ae41](https://github.com/vitejs/vite/commit/e87ae41ae57857f387a67b5140bf7d5689a3e14b))
|
|
25
|
+
* add customResolver option to resolve.alias ([#5876](https://github.com/vitejs/vite/issues/5876)) ([6408a3a](https://github.com/vitejs/vite/commit/6408a3ab9bd97f1542982755b5044871a78b59d4))
|
|
26
|
+
* allow globs in node_modules when pattern is explicit ([#6056](https://github.com/vitejs/vite/issues/6056)) ([669d7e0](https://github.com/vitejs/vite/commit/669d7e0f4b6ea4a73d3598ab1473b58c72bf093b))
|
|
27
|
+
* **html:** html simple script tag support import-expression ([#6525](https://github.com/vitejs/vite/issues/6525)) ([3546d4f](https://github.com/vitejs/vite/commit/3546d4ffcfbc011d78f9ba26e0dc689853575a1e))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
1
31
|
# [2.8.0-beta.2](https://github.com/vitejs/vite/compare/v2.8.0-beta.1...v2.8.0-beta.2) (2022-01-13)
|
|
2
32
|
|
|
3
33
|
|
package/LICENSE.md
CHANGED
|
@@ -1685,40 +1685,6 @@ Repository: git+https://github.com/css-modules/icss-utils.git
|
|
|
1685
1685
|
|
|
1686
1686
|
---------------------------------------
|
|
1687
1687
|
|
|
1688
|
-
## import-cwd
|
|
1689
|
-
License: MIT
|
|
1690
|
-
By: Sindre Sorhus
|
|
1691
|
-
Repository: sindresorhus/import-cwd
|
|
1692
|
-
|
|
1693
|
-
> MIT License
|
|
1694
|
-
>
|
|
1695
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
1696
|
-
>
|
|
1697
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1698
|
-
>
|
|
1699
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1700
|
-
>
|
|
1701
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1702
|
-
|
|
1703
|
-
---------------------------------------
|
|
1704
|
-
|
|
1705
|
-
## import-from
|
|
1706
|
-
License: MIT
|
|
1707
|
-
By: Sindre Sorhus
|
|
1708
|
-
Repository: sindresorhus/import-from
|
|
1709
|
-
|
|
1710
|
-
> MIT License
|
|
1711
|
-
>
|
|
1712
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
1713
|
-
>
|
|
1714
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1715
|
-
>
|
|
1716
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1717
|
-
>
|
|
1718
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1719
|
-
|
|
1720
|
-
---------------------------------------
|
|
1721
|
-
|
|
1722
1688
|
## inflight
|
|
1723
1689
|
License: ISC
|
|
1724
1690
|
By: Isaac Z. Schlueter
|
|
@@ -1932,6 +1898,37 @@ Repository: git+https://github.com/isaacs/isexe.git
|
|
|
1932
1898
|
|
|
1933
1899
|
---------------------------------------
|
|
1934
1900
|
|
|
1901
|
+
## json5
|
|
1902
|
+
License: MIT
|
|
1903
|
+
By: Aseem Kishore, Max Nanasy, Andrew Eisenberg, Jordan Tucker
|
|
1904
|
+
Repository: git+https://github.com/json5/json5.git
|
|
1905
|
+
|
|
1906
|
+
> MIT License
|
|
1907
|
+
>
|
|
1908
|
+
> Copyright (c) 2012-2018 Aseem Kishore, and [others].
|
|
1909
|
+
>
|
|
1910
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1911
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
1912
|
+
> in the Software without restriction, including without limitation the rights
|
|
1913
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1914
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
1915
|
+
> furnished to do so, subject to the following conditions:
|
|
1916
|
+
>
|
|
1917
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
1918
|
+
> copies or substantial portions of the Software.
|
|
1919
|
+
>
|
|
1920
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1921
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1922
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1923
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1924
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1925
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1926
|
+
> SOFTWARE.
|
|
1927
|
+
>
|
|
1928
|
+
> [others]: https://github.com/json5/json5/contributors
|
|
1929
|
+
|
|
1930
|
+
---------------------------------------
|
|
1931
|
+
|
|
1935
1932
|
## launch-editor
|
|
1936
1933
|
License: MIT
|
|
1937
1934
|
By: Evan You
|
|
@@ -3307,23 +3304,6 @@ Repository: https://github.com/unshiftio/requires-port
|
|
|
3307
3304
|
|
|
3308
3305
|
---------------------------------------
|
|
3309
3306
|
|
|
3310
|
-
## resolve-from
|
|
3311
|
-
License: MIT
|
|
3312
|
-
By: Sindre Sorhus
|
|
3313
|
-
Repository: sindresorhus/resolve-from
|
|
3314
|
-
|
|
3315
|
-
> MIT License
|
|
3316
|
-
>
|
|
3317
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
3318
|
-
>
|
|
3319
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
3320
|
-
>
|
|
3321
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
3322
|
-
>
|
|
3323
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3324
|
-
|
|
3325
|
-
---------------------------------------
|
|
3326
|
-
|
|
3327
3307
|
## resolve.exports
|
|
3328
3308
|
License: MIT
|
|
3329
3309
|
By: Luke Edwards
|
package/bin/vite.js
CHANGED
|
@@ -28,7 +28,9 @@ if (debugIndex > 0) {
|
|
|
28
28
|
.map((v) => `vite:${v}`)
|
|
29
29
|
.join(',')
|
|
30
30
|
}
|
|
31
|
-
process.env.DEBUG =
|
|
31
|
+
process.env.DEBUG = `${
|
|
32
|
+
process.env.DEBUG ? process.env.DEBUG + ',' : ''
|
|
33
|
+
}${value}`
|
|
32
34
|
|
|
33
35
|
if (filterIndex > 0) {
|
|
34
36
|
const filter = process.argv[filterIndex + 1]
|
package/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var build = require('./dep-
|
|
3
|
+
var build = require('./dep-a5ab6d86.js');
|
|
4
4
|
var require$$1 = require('crypto');
|
|
5
5
|
require('fs');
|
|
6
6
|
require('path');
|
|
@@ -22,7 +22,6 @@ require('assert');
|
|
|
22
22
|
require('buffer');
|
|
23
23
|
require('querystring');
|
|
24
24
|
require('esbuild');
|
|
25
|
-
require('json5');
|
|
26
25
|
require('child_process');
|
|
27
26
|
require('worker_threads');
|
|
28
27
|
require('readline');
|
|
@@ -19362,7 +19361,7 @@ pki.privateKeyInfoToPem = function(pki, maxline) {
|
|
|
19362
19361
|
return forge.pem.encode(msg, {maxline: maxline});
|
|
19363
19362
|
};
|
|
19364
19363
|
|
|
19365
|
-
//
|
|
19364
|
+
// Simplified fork of selfsigned with inlined options and partial
|
|
19366
19365
|
// a hexString is considered negative if it's most significant bit is 1
|
|
19367
19366
|
// because serial numbers use ones' complement notation
|
|
19368
19367
|
// this RFC in section 4.1.2.2 requires serial numbers to be positive
|