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.
@@ -1,5 +1,5 @@
1
- import { i as isInNodeModules } from './chunks/dep-db07a1ea.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-db07a1ea.js';
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.6",
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.2"
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-pre-patch build-types-roll build-types-post-patch build-types-check",
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-pre-patch": "tsx scripts/prePatchTypes.ts",
172
- "build-types-roll": "tsx scripts/api-extractor.ts run && rimraf temp",
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
  }