vite 2.7.10 → 2.8.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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

Files changed (33) hide show
  1. package/CHANGELOG.md +26 -4
  2. package/LICENSE.md +2 -744
  3. package/dist/node/certificate.d.ts +2 -0
  4. package/dist/node/chunks/{dep-2d8e2cb1.js → dep-0ebab0df.js} +2 -2
  5. package/dist/node/chunks/{dep-2d8e2cb1.js.map → dep-0ebab0df.js.map} +1 -1
  6. package/dist/node/chunks/{dep-ac1b4bf9.js → dep-2056ae8a.js} +21 -4
  7. package/dist/node/chunks/dep-2056ae8a.js.map +1 -0
  8. package/dist/node/chunks/{dep-be90506c.js → dep-372aad6a.js} +471 -4367
  9. package/dist/node/chunks/dep-372aad6a.js.map +1 -0
  10. package/dist/node/chunks/{dep-76613303.js → dep-5ad1713b.js} +25901 -30422
  11. package/dist/node/chunks/dep-5ad1713b.js.map +1 -0
  12. package/dist/node/chunks/{dep-6899098c.js → dep-7cd25957.js} +2 -2
  13. package/dist/node/chunks/{dep-6899098c.js.map → dep-7cd25957.js.map} +1 -1
  14. package/dist/node/chunks/{dep-5a0fbe99.js → dep-920a704a.js} +8568 -17936
  15. package/dist/node/chunks/dep-920a704a.js.map +1 -0
  16. package/dist/node/cli.js +14 -12
  17. package/dist/node/cli.js.map +1 -1
  18. package/dist/node/config.d.ts +19 -0
  19. package/dist/node/http.d.ts +5 -1
  20. package/dist/node/importGlob.d.ts +5 -0
  21. package/dist/node/index.d.ts +36 -7
  22. package/dist/node/index.js +3 -2
  23. package/dist/node/index.js.map +1 -1
  24. package/dist/node/plugins/html.d.ts +3 -2
  25. package/dist/node/server/index.d.ts +1 -1
  26. package/dist/node/server/moduleGraph.d.ts +5 -5
  27. package/dist/node/server/send.d.ts +8 -2
  28. package/dist/node/utils.d.ts +1 -0
  29. package/package.json +13 -11
  30. package/dist/node/chunks/dep-5a0fbe99.js.map +0 -1
  31. package/dist/node/chunks/dep-76613303.js.map +0 -1
  32. package/dist/node/chunks/dep-ac1b4bf9.js.map +0 -1
  33. package/dist/node/chunks/dep-be90506c.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,15 +1,37 @@
1
- ## [2.7.10](https://github.com/vitejs/vite/compare/v2.7.9...v2.7.10) (2021-12-30)
1
+ # [2.8.0-beta.0](https://github.com/vitejs/vite/compare/v2.7.9...v2.8.0-beta.0) (2022-01-05)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * **ssr:** move `vite:ssr-require-hook` after user plugins ([#6306](https://github.com/vitejs/vite/issues/6306)) ([9ccad0e](https://github.com/vitejs/vite/commit/9ccad0ea2a16d67d49823447b72a0ddced6da699))
7
- * use `hires: true` for SSR require hook source map ([#6310](https://github.com/vitejs/vite/issues/6310)) ([6231f9f](https://github.com/vitejs/vite/commit/6231f9f871b43859022768de8a30d1fac4df2bc3))
6
+ * **build:** fix chokidar.ignore override ([#6317](https://github.com/vitejs/vite/issues/6317)) ([aa47549](https://github.com/vitejs/vite/commit/aa475494c61898638a592387ac907a939f1dd938))
7
+ * **build:** fix watch crash with inline module ([#6373](https://github.com/vitejs/vite/issues/6373)) ([49d2f6d](https://github.com/vitejs/vite/commit/49d2f6dbd9445518b022f6c75ca397460a02d9d8))
8
+ * check if e.stack exists in the first place ([#6362](https://github.com/vitejs/vite/issues/6362)) ([f144aa9](https://github.com/vitejs/vite/commit/f144aa9f1df2134dc6695db6e8eff25cac2b5263))
9
+ * correct ssr flag in resolve calls (fix [#6213](https://github.com/vitejs/vite/issues/6213)) ([#6216](https://github.com/vitejs/vite/issues/6216)) ([6dd7d1a](https://github.com/vitejs/vite/commit/6dd7d1a7cb99737dd48e070607d0fe9ece35adab))
10
+ * **css:** no emit assets in html style tag (fix [#5968](https://github.com/vitejs/vite/issues/5968)) ([#6321](https://github.com/vitejs/vite/issues/6321)) ([dc9fce1](https://github.com/vitejs/vite/commit/dc9fce144a957a5e7b3612b27bc657121a882edc))
11
+ * don't force terser on non-legacy (fix [#6266](https://github.com/vitejs/vite/issues/6266)) ([#6272](https://github.com/vitejs/vite/issues/6272)) ([1da104e](https://github.com/vitejs/vite/commit/1da104e8597e2965313e8cd582d032bca551e4ee))
12
+ * prevent dev server crashing on malformed URI (fix [#6300](https://github.com/vitejs/vite/issues/6300)) ([#6308](https://github.com/vitejs/vite/issues/6308)) ([a49d723](https://github.com/vitejs/vite/commit/a49d72358f2d028f62b0e9fcdb096a0e5ddf24c3))
13
+ * replace chalk with picocolors ([#6277](https://github.com/vitejs/vite/issues/6277)) ([5a111ce](https://github.com/vitejs/vite/commit/5a111cedf31f579e3b8c8af5c4442d2e0cd5aa12))
14
+ * replace execa with cross-spawn ([#6299](https://github.com/vitejs/vite/issues/6299)) ([f68ed8b](https://github.com/vitejs/vite/commit/f68ed8b4ebbec01491d069164b28a5948537f0d7))
15
+ * **ssr:** move `vite:ssr-require-hook` after user plugins ([#6306](https://github.com/vitejs/vite/issues/6306)) ([d856c4b](https://github.com/vitejs/vite/commit/d856c4bd6798707e0cbdfc127a2e8b6c00c65dae))
16
+ * strip NULL_BYTE_PLACEHOLDER before transform ([#6390](https://github.com/vitejs/vite/issues/6390)) ([5964949](https://github.com/vitejs/vite/commit/596494948a6e2f697232371b200c2d7a51d386bc))
17
+ * strip query when resolving entry ([#6233](https://github.com/vitejs/vite/issues/6233)) ([000ba2e](https://github.com/vitejs/vite/commit/000ba2e00b14e6c595febfa6dcae862e2d341823))
18
+ * this._implicitHeader is not a function ([#6313](https://github.com/vitejs/vite/issues/6313)) ([c5ba2f2](https://github.com/vitejs/vite/commit/c5ba2f24bd48b88907a1505bdf0a83d6b09f1d2b))
19
+ * upgrade postcss-modules ([#6248](https://github.com/vitejs/vite/issues/6248)) ([ac3f434](https://github.com/vitejs/vite/commit/ac3f434b8b7bc827fd76a28989f8c3ebaa999ee9))
20
+ * use `hires: true` for SSR require hook source map ([#6310](https://github.com/vitejs/vite/issues/6310)) ([0ebeb98](https://github.com/vitejs/vite/commit/0ebeb981789e6c29889db03fc11fd9b80c63883f))
8
21
 
9
22
 
10
23
  ### Features
11
24
 
12
- * option to disable pre-transform ([#6309](https://github.com/vitejs/vite/issues/6309)) ([c338501](https://github.com/vitejs/vite/commit/c338501bcdbf38f5fcf4a15bbac44c4c1d827ca8))
25
+ * catch postcss error messages ([#6293](https://github.com/vitejs/vite/issues/6293)) ([4d75b2e](https://github.com/vitejs/vite/commit/4d75b2e39d4decd1294f62333bdae4ba577bf1cb))
26
+ * **define:** prevent assignment ([#5515](https://github.com/vitejs/vite/issues/5515)) ([6d4ee18](https://github.com/vitejs/vite/commit/6d4ee18e0c45e7c1fedd36c24b631a8f97f40c0f))
27
+ * import.meta.glob support ?raw ([#5545](https://github.com/vitejs/vite/issues/5545)) ([5279de6](https://github.com/vitejs/vite/commit/5279de6859df61b6191a4c3bfc76da582309a5ec))
28
+ * option to disable pre-transform ([#6309](https://github.com/vitejs/vite/issues/6309)) ([2c14525](https://github.com/vitejs/vite/commit/2c145252b7870e8173886339b69f189878533839))
29
+ * **server:** support headers configurable ([#5580](https://github.com/vitejs/vite/issues/5580)) ([db36e81](https://github.com/vitejs/vite/commit/db36e8158e06ff6a383d03b9680aafc7f62d5033))
30
+ * **server:** trace `error.loc` back to original source ([#5467](https://github.com/vitejs/vite/issues/5467)) ([65cd44d](https://github.com/vitejs/vite/commit/65cd44dcabbf213b24d68cf02d787e7b9e138c21))
31
+ * **ssr:** support preload dynamic css file in html head ([#5705](https://github.com/vitejs/vite/issues/5705)) ([07fca95](https://github.com/vitejs/vite/commit/07fca955519a98e19d4e138a17e19a000eef3f46))
32
+ * support .cjs config file ([#5602](https://github.com/vitejs/vite/issues/5602)) ([cddd986](https://github.com/vitejs/vite/commit/cddd986b2a3c61afd53d6fde88f9f28d3c3a6b00))
33
+ * **vite:** pass mode to preview command ([#6392](https://github.com/vitejs/vite/issues/6392)) ([1ff1103](https://github.com/vitejs/vite/commit/1ff1103ade691b0a3f564609fdc4e76d5122227b))
34
+ * **worker:** support worker format, plugins and rollupOptions (fix [#6191](https://github.com/vitejs/vite/issues/6191)) ([#6351](https://github.com/vitejs/vite/issues/6351)) ([133fcea](https://github.com/vitejs/vite/commit/133fcea5223263b0ae08ac9a0422b55183ebd266))
13
35
 
14
36
 
15
37