vite 2.7.0-beta.1 → 2.7.0-beta.2
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 +48 -0
- package/LICENSE.md +0 -2
- package/dist/node/chunks/{dep-c4a46bac.js → dep-39172335.js} +2 -2
- package/dist/node/chunks/{dep-c4a46bac.js.map → dep-39172335.js.map} +1 -1
- package/dist/node/chunks/{dep-deef6691.js → dep-b89007db.js} +3 -2
- package/dist/node/chunks/dep-b89007db.js.map +1 -0
- package/dist/node/chunks/{dep-966eddc9.js → dep-caa1572d.js} +4014 -3808
- package/dist/node/chunks/dep-caa1572d.js.map +1 -0
- package/dist/node/chunks/{dep-49091104.js → dep-e85c9ca9.js} +2 -2
- package/dist/node/chunks/{dep-49091104.js.map → dep-e85c9ca9.js.map} +1 -1
- package/dist/node/cli.js +23 -21
- package/dist/node/cli.js.map +1 -1
- package/dist/node/index.d.ts +101 -53
- package/dist/node/index.js +12 -12
- package/package.json +13 -14
- package/types/commonjs.d.ts +20 -0
- 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,23 @@
|
|
|
1
|
+
# [2.7.0-beta.2](https://github.com/vitejs/vite/compare/v2.7.0-beta.1...v2.7.0-beta.2) (2021-11-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **commonjs:** expose ignoreTryCatch config option ([#5555](https://github.com/vitejs/vite/issues/5555)) ([d383c2a](https://github.com/vitejs/vite/commit/d383c2a04159a2e5d2f2618ac4e590bdb3172f77))
|
|
7
|
+
* **esbuild:** respect esbuild config on build ([#5538](https://github.com/vitejs/vite/issues/5538)) ([ff05fe9](https://github.com/vitejs/vite/commit/ff05fe99ad1f2fe7524eadd455a4a0b831cd75f2))
|
|
8
|
+
* **hmr:** revert early break from handleHotUpdate loop ([#5536](https://github.com/vitejs/vite/issues/5536)) ([4abade6](https://github.com/vitejs/vite/commit/4abade62f101049b941fa8f6b98187c5587e238f))
|
|
9
|
+
* 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))
|
|
10
|
+
* **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))
|
|
11
|
+
* Windows path error on script proxying ([#5556](https://github.com/vitejs/vite/issues/5556)) ([f8dc1ee](https://github.com/vitejs/vite/commit/f8dc1eee23ec26333af78dd592c35c0306c880a8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* importing ts files using their corresponding js extesions ([#5510](https://github.com/vitejs/vite/issues/5510)) ([7977e92](https://github.com/vitejs/vite/commit/7977e92e0610cfcb814b45af8432bab1054863d2))
|
|
17
|
+
* preview config ([#5514](https://github.com/vitejs/vite/issues/5514)) ([ff755eb](https://github.com/vitejs/vite/commit/ff755eb7ec2346d2d6c2b74850f0c95063d51a6a))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
1
21
|
# [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
22
|
|
|
3
23
|
|
|
@@ -11,6 +31,34 @@
|
|
|
11
31
|
# [2.7.0-beta.0](https://github.com/vitejs/vite/compare/v2.6.13...v2.7.0-beta.0) (2021-10-28)
|
|
12
32
|
|
|
13
33
|
|
|
34
|
+
### BREAKING CHANGES
|
|
35
|
+
|
|
36
|
+
- `server.fs.strict` is `true` by default ([#5341](https://github.com/vitejs/vite/pull/5341))
|
|
37
|
+
See [server filesystem restriction docs](https://vitejs.dev/config/#server-fs-strict) for more details.
|
|
38
|
+
- Plugin hooks `ssr` param to object in `resolveId`, `load`, and `transform` ([#5253](https://github.com/vitejs/vite/pull/5253))
|
|
39
|
+
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:
|
|
40
|
+
```ts
|
|
41
|
+
export interface Plugin extends RollupPlugin {
|
|
42
|
+
// ... other hooks
|
|
43
|
+
resolveId?(this: PluginContext, source: string, importer: string | undefined, options: {
|
|
44
|
+
custom?: CustomPluginOptions;
|
|
45
|
+
ssr?: boolean;
|
|
46
|
+
}): Promise<ResolveIdResult> | ResolveIdResult;
|
|
47
|
+
load?(this: PluginContext, id: string, options?: {
|
|
48
|
+
ssr?: boolean;
|
|
49
|
+
}): Promise<LoadResult> | LoadResult;
|
|
50
|
+
transform?(this: TransformPluginContext, code: string, id: string, options?: {
|
|
51
|
+
ssr?: boolean;
|
|
52
|
+
}): Promise<TransformResult> | TransformResult;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
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.
|
|
56
|
+
- `server.pluginContainer` options object for `resolveId`, `load`, and `transform` ([#5294](https://github.com/vitejs/vite/pull/5294))
|
|
57
|
+
- Normalize scripts and commands naming ([#5207](https://github.com/vitejs/vite/pull/5207))
|
|
58
|
+
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`.
|
|
59
|
+
- Align experimental `preview` api ([#5407](https://github.com/vitejs/vite/pull/5407))
|
|
60
|
+
This API was first introduced in 2.6 and it is still in flux.
|
|
61
|
+
|
|
14
62
|
### Bug Fixes
|
|
15
63
|
|
|
16
64
|
* 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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var build = require('./dep-
|
|
3
|
+
var build = require('./dep-caa1572d.js');
|
|
4
4
|
var require$$1 = require('crypto');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
@@ -29179,4 +29179,4 @@ var index = /*#__PURE__*/_mergeNamespaces({
|
|
|
29179
29179
|
}, [selfsigned]);
|
|
29180
29180
|
|
|
29181
29181
|
exports.index = index;
|
|
29182
|
-
//# sourceMappingURL=dep-
|
|
29182
|
+
//# sourceMappingURL=dep-39172335.js.map
|