vite 4.4.9 → 5.0.0-beta.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "4.4.9",
3
+ "version": "5.0.0-beta.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -28,6 +28,9 @@
28
28
  "types": "./client.d.ts"
29
29
  },
30
30
  "./dist/client/*": "./dist/client/*",
31
+ "./types/*": {
32
+ "types": "./types/*"
33
+ },
31
34
  "./package.json": "./package.json"
32
35
  },
33
36
  "files": [
@@ -38,7 +41,7 @@
38
41
  "types"
39
42
  ],
40
43
  "engines": {
41
- "node": "^14.18.0 || >=16.0.0"
44
+ "node": "^18.0.0 || >=20.0.0"
42
45
  },
43
46
  "repository": {
44
47
  "type": "git",
@@ -50,26 +53,11 @@
50
53
  },
51
54
  "homepage": "https://github.com/vitejs/vite/tree/main/#readme",
52
55
  "funding": "https://github.com/vitejs/vite?sponsor=1",
53
- "scripts": {
54
- "dev": "rimraf dist && pnpm run build-bundle -w",
55
- "build": "rimraf dist && run-s build-bundle build-types",
56
- "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
57
- "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
58
- "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
59
- "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
60
- "build-types-roll": "tsx scripts/api-extractor.ts run && rimraf temp",
61
- "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
62
- "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
63
- "typecheck": "tsc --noEmit",
64
- "lint": "eslint --cache --ext .ts src/**",
65
- "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
66
- "prepublishOnly": "npm run build"
67
- },
68
56
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
69
57
  "dependencies": {
70
58
  "esbuild": "^0.18.10",
71
59
  "postcss": "^8.4.27",
72
- "rollup": "^3.27.1"
60
+ "rollup": "^3.28.0"
73
61
  },
74
62
  "optionalDependencies": {
75
63
  "fsevents": "~2.3.2"
@@ -136,7 +124,7 @@
136
124
  "ws": "^8.13.0"
137
125
  },
138
126
  "peerDependencies": {
139
- "@types/node": ">= 14",
127
+ "@types/node": "^18.0.0 || >=20.0.0",
140
128
  "less": "*",
141
129
  "lightningcss": "^1.21.0",
142
130
  "sass": "*",
@@ -166,5 +154,19 @@
166
154
  "terser": {
167
155
  "optional": true
168
156
  }
157
+ },
158
+ "scripts": {
159
+ "dev": "rimraf dist && pnpm run build-bundle -w",
160
+ "build": "rimraf dist && run-s build-bundle build-types",
161
+ "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
162
+ "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
163
+ "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
164
+ "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
165
+ "build-types-roll": "tsx scripts/api-extractor.ts run && rimraf temp",
166
+ "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
167
+ "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
168
+ "typecheck": "tsc --noEmit",
169
+ "lint": "eslint --cache --ext .ts src/**",
170
+ "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
169
171
  }
170
- }
172
+ }
@@ -71,27 +71,3 @@ export interface ImportGlobFunction {
71
71
  options: ImportGlobOptions<true, string>,
72
72
  ): Record<string, M>
73
73
  }
74
-
75
- export interface ImportGlobEagerFunction {
76
- /**
77
- * Eagerly import a list of files with a glob pattern.
78
- *
79
- * Overload 1: No generic provided, infer the type from `as`
80
- */
81
- <
82
- As extends string,
83
- T = As extends keyof KnownAsTypeMap ? KnownAsTypeMap[As] : unknown,
84
- >(
85
- glob: string | string[],
86
- options?: Omit<ImportGlobOptions<boolean, As>, 'eager'>,
87
- ): Record<string, T>
88
- /**
89
- * Eagerly import a list of files with a glob pattern.
90
- *
91
- * Overload 2: Module generic provided
92
- */
93
- <M>(
94
- glob: string | string[],
95
- options?: Omit<ImportGlobOptions<boolean, string>, 'eager'>,
96
- ): Record<string, M>
97
- }
@@ -19,8 +19,4 @@ interface ImportMeta {
19
19
  readonly env: ImportMetaEnv
20
20
 
21
21
  glob: import('./importGlob').ImportGlobFunction
22
- /**
23
- * @deprecated Use `import.meta.glob('*', { eager: true })` instead
24
- */
25
- globEager: import('./importGlob').ImportGlobEagerFunction
26
22
  }