vite 4.4.8 → 5.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "4.4.8",
3
+ "version": "5.0.0-beta.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -38,7 +38,7 @@
38
38
  "types"
39
39
  ],
40
40
  "engines": {
41
- "node": "^14.18.0 || >=16.0.0"
41
+ "node": "^18.0.0 || >=20.0.0"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",
@@ -50,26 +50,11 @@
50
50
  },
51
51
  "homepage": "https://github.com/vitejs/vite/tree/main/#readme",
52
52
  "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
53
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
69
54
  "dependencies": {
70
55
  "esbuild": "^0.18.10",
71
- "postcss": "^8.4.26",
72
- "rollup": "^3.25.2"
56
+ "postcss": "^8.4.27",
57
+ "rollup": "^3.28.0"
73
58
  },
74
59
  "optionalDependencies": {
75
60
  "fsevents": "~2.3.2"
@@ -105,7 +90,7 @@
105
90
  "escape-html": "^1.0.3",
106
91
  "estree-walker": "^3.0.3",
107
92
  "etag": "^1.8.1",
108
- "fast-glob": "^3.3.0",
93
+ "fast-glob": "^3.3.1",
109
94
  "http-proxy": "^1.18.1",
110
95
  "json-stable-stringify": "^1.0.2",
111
96
  "launch-editor-middleware": "^2.6.0",
@@ -128,11 +113,11 @@
128
113
  "sirv": "^2.0.3",
129
114
  "source-map-support": "^0.5.21",
130
115
  "strip-ansi": "^7.1.0",
131
- "strip-literal": "^1.0.1",
116
+ "strip-literal": "^1.3.0",
132
117
  "tsconfck": "^2.1.2",
133
- "tslib": "^2.6.0",
118
+ "tslib": "^2.6.1",
134
119
  "types": "link:./types",
135
- "ufo": "^1.1.2",
120
+ "ufo": "^1.2.0",
136
121
  "ws": "^8.13.0"
137
122
  },
138
123
  "peerDependencies": {
@@ -166,5 +151,19 @@
166
151
  "terser": {
167
152
  "optional": true
168
153
  }
154
+ },
155
+ "scripts": {
156
+ "dev": "rimraf dist && pnpm run build-bundle -w",
157
+ "build": "rimraf dist && run-s build-bundle build-types",
158
+ "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
159
+ "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
160
+ "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
161
+ "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
162
+ "build-types-roll": "api-extractor run && rimraf temp",
163
+ "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
164
+ "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
165
+ "typecheck": "tsc --noEmit",
166
+ "lint": "eslint --cache --ext .ts src/**",
167
+ "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
169
168
  }
170
- }
169
+ }
@@ -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
- }
@@ -2,8 +2,6 @@
2
2
  // Thus cannot contain any top-level imports
3
3
  // <https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation>
4
4
 
5
- /* eslint-disable @typescript-eslint/consistent-type-imports */
6
-
7
5
  interface ImportMetaEnv {
8
6
  [key: string]: any
9
7
  BASE_URL: string
@@ -21,8 +19,4 @@ interface ImportMeta {
21
19
  readonly env: ImportMetaEnv
22
20
 
23
21
  glob: import('./importGlob').ImportGlobFunction
24
- /**
25
- * @deprecated Use `import.meta.glob('*', { eager: true })` instead
26
- */
27
- globEager: import('./importGlob').ImportGlobEagerFunction
28
22
  }