vite 4.4.9 → 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/client.d.ts +5 -5
- package/dist/client/client.mjs +6 -7
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/chunks/{dep-e0331088.js → dep-1d1f72b4.js} +1 -1
- package/dist/node/chunks/{dep-73522cdf.js → dep-3d0847ee.js} +1 -1
- package/dist/node/chunks/{dep-df561101.js → dep-4033fb3a.js} +263 -173
- package/dist/node/cli.js +16 -7
- package/dist/node/index.d.ts +22 -97
- package/dist/node/index.js +3 -2
- package/dist/node-cjs/publicUtils.cjs +1268 -9
- package/package.json +18 -19
- package/types/importGlob.d.ts +0 -24
- package/types/importMeta.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
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
56
|
"postcss": "^8.4.27",
|
|
72
|
-
"rollup": "^3.
|
|
57
|
+
"rollup": "^3.28.0"
|
|
73
58
|
},
|
|
74
59
|
"optionalDependencies": {
|
|
75
60
|
"fsevents": "~2.3.2"
|
|
@@ -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
|
+
}
|
package/types/importGlob.d.ts
CHANGED
|
@@ -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
|
-
}
|
package/types/importMeta.d.ts
CHANGED