vite 2.7.0-beta.5 → 2.7.0-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "2.7.0-beta.5",
3
+ "version": "2.7.0-beta.9",
4
4
  "license": "MIT",
5
5
  "author": "Evan You",
6
6
  "description": "Native-ESM powered web dev build tool",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@ampproject/remapping": "^1.0.1",
57
- "@babel/parser": "^7.16.2",
57
+ "@babel/parser": "^7.16.4",
58
58
  "@babel/types": "^7.16.0",
59
59
  "@rollup/plugin-alias": "^3.1.8",
60
60
  "@rollup/plugin-commonjs": "^21.0.1",
@@ -68,18 +68,17 @@
68
68
  "@types/estree": "^0.0.50",
69
69
  "@types/etag": "^1.8.1",
70
70
  "@types/less": "^3.0.3",
71
- "@types/micromatch": "^4.0.0",
71
+ "@types/micromatch": "^4.0.2",
72
72
  "@types/mime": "^2.0.3",
73
- "@types/node": "^16.11.7",
73
+ "@types/node": "^16.11.9",
74
74
  "@types/resolve": "^1.20.1",
75
75
  "@types/sass": "~1.43.0",
76
76
  "@types/stylus": "^0.48.36",
77
77
  "@types/ws": "^8.2.0",
78
- "@vue/compiler-dom": "^3.2.21",
79
- "acorn": "^8.5.0",
78
+ "@vue/compiler-dom": "^3.2.22",
79
+ "acorn": "^8.6.0",
80
80
  "acorn-class-fields": "^1.0.0",
81
81
  "acorn-static-class-features": "^1.0.0",
82
- "builtin-modules": "^3.2.0",
83
82
  "cac": "6.7.9",
84
83
  "chalk": "^4.1.2",
85
84
  "chokidar": "^3.5.2",
@@ -112,9 +111,9 @@
112
111
  "selfsigned": "^1.10.11",
113
112
  "sirv": "^1.0.18",
114
113
  "source-map": "^0.6.1",
115
- "source-map-support": "^0.5.20",
114
+ "source-map-support": "^0.5.21",
116
115
  "strip-ansi": "^6.0.1",
117
- "terser": "^5.9.0",
116
+ "terser": "^5.10.0",
118
117
  "tsconfck": "1.1.1",
119
118
  "tslib": "^2.3.1",
120
119
  "types": "link:./types",
@@ -78,10 +78,8 @@ async function handleMessage(payload: HMRPayload) {
78
78
  // can't use querySelector with `[href*=]` here since the link may be
79
79
  // using relative paths so we need to use link.href to grab the full
80
80
  // URL for the include check.
81
- const el = (
82
- [].slice.call(
83
- document.querySelectorAll(`link`)
84
- ) as HTMLLinkElement[]
81
+ const el = Array.from(
82
+ document.querySelectorAll<HTMLLinkElement>('link')
85
83
  ).find((e) => e.href.includes(path))
86
84
  if (el) {
87
85
  const newPath = `${base}${path.slice(1)}${
@@ -275,8 +273,6 @@ export function removeStyle(id: string): void {
275
273
  const style = sheetsMap.get(id)
276
274
  if (style) {
277
275
  if (style instanceof CSSStyleSheet) {
278
- // @ts-ignore
279
- const index = document.adoptedStyleSheets.indexOf(style)
280
276
  // @ts-ignore
281
277
  document.adoptedStyleSheets = document.adoptedStyleSheets.filter(
282
278
  (s: CSSStyleSheet) => s !== style