vite 2.7.0-beta.1 → 2.7.0-beta.5
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 +86 -0
- package/LICENSE.md +0 -2
- package/dist/node/chunks/{dep-49091104.js → dep-0a2fa784.js} +2 -2
- package/dist/node/chunks/{dep-49091104.js.map → dep-0a2fa784.js.map} +1 -1
- package/dist/node/chunks/{dep-966eddc9.js → dep-6920cd01.js} +4200 -3784
- package/dist/node/chunks/dep-6920cd01.js.map +1 -0
- package/dist/node/chunks/{dep-c4a46bac.js → dep-732fded6.js} +2 -2
- package/dist/node/chunks/{dep-c4a46bac.js.map → dep-732fded6.js.map} +1 -1
- package/dist/node/chunks/{dep-deef6691.js → dep-bc61ebc7.js} +3 -2
- package/dist/node/chunks/dep-bc61ebc7.js.map +1 -0
- package/dist/node/cli.js +23 -24
- package/dist/node/cli.js.map +1 -1
- package/dist/node/index.d.ts +117 -58
- package/dist/node/index.js +12 -12
- package/package.json +15 -15
- package/types/commonjs.d.ts +22 -2
- package/types/shims.d.ts +2 -3
- package/dist/node/chunks/dep-966eddc9.js.map +0 -1
- package/dist/node/chunks/dep-deef6691.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
+
# [2.7.0-beta.5](https://github.com/vitejs/vite/compare/v2.7.0-beta.4...v2.7.0-beta.5) (2021-11-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correctly resolve virtual modules during import scan ([#5659](https://github.com/vitejs/vite/issues/5659)) ([40d503c](https://github.com/vitejs/vite/commit/40d503cce08324b6bd6341b45ad8a73876f6f4a0))
|
|
7
|
+
* **resolve:** check nested directories for package.json ([#5665](https://github.com/vitejs/vite/issues/5665)) ([022db52](https://github.com/vitejs/vite/commit/022db52f6de19e98e6412e7c11bf719b1fd8960c))
|
|
8
|
+
* **ssr:** prefer CJS but still allow ESM entries ([#5662](https://github.com/vitejs/vite/issues/5662)) ([72d8925](https://github.com/vitejs/vite/commit/72d8925f79a8983ae131df06a627ee020aab71f8))
|
|
9
|
+
* tolerate undefined parent in `hookNodeResolve` callback ([#5664](https://github.com/vitejs/vite/issues/5664)) ([d788682](https://github.com/vitejs/vite/commit/d788682492465a9365b262dcd93a618e4415637c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# [2.7.0-beta.4](https://github.com/vitejs/vite/compare/v2.7.0-beta.3...v2.7.0-beta.4) (2021-11-12)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **build:** resolve `rollupOptions.input` paths ([#5601](https://github.com/vitejs/vite/issues/5601)) ([5b6b016](https://github.com/vitejs/vite/commit/5b6b01693720290e8998b2613f0dcb2d699ee84f))
|
|
19
|
+
* check exactly in proxyESM ([#5512](https://github.com/vitejs/vite/issues/5512)) ([a17da55](https://github.com/vitejs/vite/commit/a17da55c5dd7ec6206fea8a255f9383b75384351))
|
|
20
|
+
* handle local and module scripts separately ([#5464](https://github.com/vitejs/vite/issues/5464)) ([0713446](https://github.com/vitejs/vite/commit/0713446fa4df678422c84bd141b189a930c100e7))
|
|
21
|
+
* **logger:** no sameCount if clearScreen is false ([#5648](https://github.com/vitejs/vite/issues/5648)) ([afd6b6d](https://github.com/vitejs/vite/commit/afd6b6d5408745b6f376318a15762ca6f34e8c68))
|
|
22
|
+
* **server:** watch correct env files ([#5520](https://github.com/vitejs/vite/issues/5520)) ([03b77bd](https://github.com/vitejs/vite/commit/03b77bd01677cfa2ac76d1a8438af0ce1c7c5678))
|
|
23
|
+
* **sourcemap:** tolerate virtual modules in `sources` array ([#5587](https://github.com/vitejs/vite/issues/5587)) ([cfd2c5e](https://github.com/vitejs/vite/commit/cfd2c5e8deb9fe1e80ec611deff7834a89dcdecc))
|
|
24
|
+
* **ssr:** use `tryNodeResolve` instead of `resolveFrom` ([#3951](https://github.com/vitejs/vite/issues/3951)) ([87c0050](https://github.com/vitejs/vite/commit/87c0050dea008120aad79cf23acca7dfd41cd72e))
|
|
25
|
+
* use micromatch for consistent glob matching ([#5610](https://github.com/vitejs/vite/issues/5610)) ([9d50df8](https://github.com/vitejs/vite/commit/9d50df8198d7cf339e95095580775a5bf8e93948))
|
|
26
|
+
* vitepress/theme in ssrExternals ([#5651](https://github.com/vitejs/vite/issues/5651)) ([1f91cdb](https://github.com/vitejs/vite/commit/1f91cdb6c5c573fd9efd147e38cabc0e5f22028f))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* support `moduleInfo.meta` in dev server ([#5465](https://github.com/vitejs/vite/issues/5465)) ([f6d08c7](https://github.com/vitejs/vite/commit/f6d08c7430906d6262ee1df729d2ea193a80fa6c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [2.7.0-beta.3](https://github.com/vitejs/vite/compare/v2.7.0-beta.2...v2.7.0-beta.3) (2021-11-08)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [2.7.0-beta.2](https://github.com/vitejs/vite/compare/v2.7.0-beta.1...v2.7.0-beta.2) (2021-11-08)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **commonjs:** expose ignoreTryCatch config option ([#5555](https://github.com/vitejs/vite/issues/5555)) ([d383c2a](https://github.com/vitejs/vite/commit/d383c2a04159a2e5d2f2618ac4e590bdb3172f77))
|
|
45
|
+
* **esbuild:** respect esbuild config on build ([#5538](https://github.com/vitejs/vite/issues/5538)) ([ff05fe9](https://github.com/vitejs/vite/commit/ff05fe99ad1f2fe7524eadd455a4a0b831cd75f2))
|
|
46
|
+
* **hmr:** revert early break from handleHotUpdate loop ([#5536](https://github.com/vitejs/vite/issues/5536)) ([4abade6](https://github.com/vitejs/vite/commit/4abade62f101049b941fa8f6b98187c5587e238f))
|
|
47
|
+
* replace server.origin in css plugin (fix [#5408](https://github.com/vitejs/vite/issues/5408)) ([#5571](https://github.com/vitejs/vite/issues/5571)) ([bd8b66d](https://github.com/vitejs/vite/commit/bd8b66d8ef4ceb81168a3a7deeff7d9040d778f2))
|
|
48
|
+
* **server:** use `options` argument in caching of `transformRequest` calls ([#5391](https://github.com/vitejs/vite/issues/5391)) ([27b7f90](https://github.com/vitejs/vite/commit/27b7f90ce2aa9de4290a8422b899d2d718a8c7d7))
|
|
49
|
+
* Windows path error on script proxying ([#5556](https://github.com/vitejs/vite/issues/5556)) ([f8dc1ee](https://github.com/vitejs/vite/commit/f8dc1eee23ec26333af78dd592c35c0306c880a8))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* importing ts files using their corresponding js extesions ([#5510](https://github.com/vitejs/vite/issues/5510)) ([7977e92](https://github.com/vitejs/vite/commit/7977e92e0610cfcb814b45af8432bab1054863d2))
|
|
55
|
+
* preview config ([#5514](https://github.com/vitejs/vite/issues/5514)) ([ff755eb](https://github.com/vitejs/vite/commit/ff755eb7ec2346d2d6c2b74850f0c95063d51a6a))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
1
59
|
# [2.7.0-beta.1](https://github.com/vitejs/vite/compare/v2.7.0-beta.0...v2.7.0-beta.1) (2021-11-01)
|
|
2
60
|
|
|
3
61
|
|
|
@@ -11,6 +69,34 @@
|
|
|
11
69
|
# [2.7.0-beta.0](https://github.com/vitejs/vite/compare/v2.6.13...v2.7.0-beta.0) (2021-10-28)
|
|
12
70
|
|
|
13
71
|
|
|
72
|
+
### BREAKING CHANGES
|
|
73
|
+
|
|
74
|
+
- `server.fs.strict` is `true` by default ([#5341](https://github.com/vitejs/vite/pull/5341))
|
|
75
|
+
See [server filesystem restriction docs](https://vitejs.dev/config/#server-fs-strict) for more details.
|
|
76
|
+
- Plugin hooks `ssr` param to object in `resolveId`, `load`, and `transform` ([#5253](https://github.com/vitejs/vite/pull/5253))
|
|
77
|
+
Previous to this release, the `ssr` param was passed as a `boolean` in the last parameter of each hook. The new interface for these hooks is now:
|
|
78
|
+
```ts
|
|
79
|
+
export interface Plugin extends RollupPlugin {
|
|
80
|
+
// ... other hooks
|
|
81
|
+
resolveId?(this: PluginContext, source: string, importer: string | undefined, options: {
|
|
82
|
+
custom?: CustomPluginOptions;
|
|
83
|
+
ssr?: boolean;
|
|
84
|
+
}): Promise<ResolveIdResult> | ResolveIdResult;
|
|
85
|
+
load?(this: PluginContext, id: string, options?: {
|
|
86
|
+
ssr?: boolean;
|
|
87
|
+
}): Promise<LoadResult> | LoadResult;
|
|
88
|
+
transform?(this: TransformPluginContext, code: string, id: string, options?: {
|
|
89
|
+
ssr?: boolean;
|
|
90
|
+
}): Promise<TransformResult> | TransformResult;
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
In your plugins, you can check if the last param is a boolean or an object to be backward compatible with 2.6 and give some time to users to migrate to Vite 2.7.
|
|
94
|
+
- `server.pluginContainer` options object for `resolveId`, `load`, and `transform` ([#5294](https://github.com/vitejs/vite/pull/5294))
|
|
95
|
+
- Normalize scripts and commands naming ([#5207](https://github.com/vitejs/vite/pull/5207))
|
|
96
|
+
Adds a new `vite dev` command alias for `vite serve`, preparing for the new release of create-vite where package scripts are renamed to `dev`, `build`, and `preview`.
|
|
97
|
+
- Align experimental `preview` api ([#5407](https://github.com/vitejs/vite/pull/5407))
|
|
98
|
+
This API was first introduced in 2.6 and it is still in flux.
|
|
99
|
+
|
|
14
100
|
### Bug Fixes
|
|
15
101
|
|
|
16
102
|
* add `import` support to `ssrModuleLoader` ([#5197](https://github.com/vitejs/vite/issues/5197)) ([baba1f9](https://github.com/vitejs/vite/commit/baba1f9e8fb22254b3858bcc1ffe89b334736068))
|
package/LICENSE.md
CHANGED
|
@@ -4729,8 +4729,6 @@ License: MIT
|
|
|
4729
4729
|
By: Einar Otto Stangvik
|
|
4730
4730
|
Repository: websockets/ws
|
|
4731
4731
|
|
|
4732
|
-
> The MIT License (MIT)
|
|
4733
|
-
>
|
|
4734
4732
|
> Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
|
4735
4733
|
>
|
|
4736
4734
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('postcss');
|
|
4
|
-
var build$2 = require('./dep-
|
|
4
|
+
var build$2 = require('./dep-6920cd01.js');
|
|
5
5
|
var path$4 = require('path');
|
|
6
6
|
var require$$1 = require('crypto');
|
|
7
7
|
var fs = require('fs');
|
|
@@ -11401,4 +11401,4 @@ var index = /*#__PURE__*/_mergeNamespaces({
|
|
|
11401
11401
|
}, [build$1.exports]);
|
|
11402
11402
|
|
|
11403
11403
|
exports.index = index;
|
|
11404
|
-
//# sourceMappingURL=dep-
|
|
11404
|
+
//# sourceMappingURL=dep-0a2fa784.js.map
|