vite 5.0.0-beta.6 → 5.0.0-beta.7
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/dist/client/client.mjs +17 -0
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/chunks/{dep-db07a1ea.js → dep-7af400e9.js} +145 -86
- package/dist/node/chunks/{dep-ce41d4ea.js → dep-8648c2fe.js} +1 -1
- package/dist/node/chunks/{dep-c3c41c00.js → dep-cb981dcb.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +3270 -3474
- package/dist/node/index.js +2 -2
- package/package.json +6 -9
- package/types/hot.d.ts +4 -0
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isInNodeModules } from './chunks/dep-
|
|
2
|
-
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
|
1
|
+
import { i as isInNodeModules } from './chunks/dep-7af400e9.js';
|
|
2
|
+
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-7af400e9.js';
|
|
3
3
|
export { VERSION as version } from './constants.js';
|
|
4
4
|
export { version as esbuildVersion } from 'esbuild';
|
|
5
5
|
export { VERSION as rollupVersion } from 'rollup';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -63,15 +63,13 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"esbuild": "^0.19.3",
|
|
65
65
|
"postcss": "^8.4.31",
|
|
66
|
-
"rollup": "^3.29.
|
|
66
|
+
"rollup": "^3.29.4"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
69
|
"fsevents": "~2.3.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@ampproject/remapping": "^2.2.1",
|
|
73
|
-
"@babel/parser": "^7.23.0",
|
|
74
|
-
"@babel/types": "^7.23.0",
|
|
75
73
|
"@jridgewell/trace-mapping": "^0.3.19",
|
|
76
74
|
"@rollup/plugin-alias": "^5.0.1",
|
|
77
75
|
"@rollup/plugin-commonjs": "^25.0.5",
|
|
@@ -119,6 +117,7 @@
|
|
|
119
117
|
"postcss-load-config": "^4.0.1",
|
|
120
118
|
"postcss-modules": "^6.0.0",
|
|
121
119
|
"resolve.exports": "^2.0.2",
|
|
120
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
122
121
|
"rollup-plugin-license": "^3.1.0",
|
|
123
122
|
"sirv": "^2.0.3",
|
|
124
123
|
"source-map-support": "^0.5.21",
|
|
@@ -166,12 +165,10 @@
|
|
|
166
165
|
"dev": "rimraf dist && pnpm run build-bundle -w",
|
|
167
166
|
"build": "rimraf dist && run-s build-bundle build-types",
|
|
168
167
|
"build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
169
|
-
"build-types": "run-s build-types-temp build-types-
|
|
168
|
+
"build-types": "run-s build-types-temp build-types-roll build-types-check",
|
|
170
169
|
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
|
|
171
|
-
"build-types-
|
|
172
|
-
"build-types-
|
|
173
|
-
"build-types-post-patch": "tsx scripts/postPatchTypes.ts",
|
|
174
|
-
"build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
|
|
170
|
+
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
|
|
171
|
+
"build-types-check": "tsc --project tsconfig.check.json",
|
|
175
172
|
"typecheck": "tsc --noEmit",
|
|
176
173
|
"lint": "eslint --cache --ext .ts src/**",
|
|
177
174
|
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
|
package/types/hot.d.ts
CHANGED
|
@@ -28,5 +28,9 @@ export interface ViteHotContext {
|
|
|
28
28
|
event: T,
|
|
29
29
|
cb: (payload: InferCustomEventPayload<T>) => void,
|
|
30
30
|
): void
|
|
31
|
+
off<T extends string>(
|
|
32
|
+
event: T,
|
|
33
|
+
cb: (payload: InferCustomEventPayload<T>) => void,
|
|
34
|
+
): void
|
|
31
35
|
send<T extends string>(event: T, data?: InferCustomEventPayload<T>): void
|
|
32
36
|
}
|