vite 8.2.1 → 8.3.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.
@@ -39,8 +39,16 @@ export interface WebSocketConnectionPayload {
39
39
  }
40
40
 
41
41
  export interface InvalidatePayload {
42
+ /**
43
+ * Module URL of the invalidated module.
44
+ * @remarks This changed from a browser-safe URL to a module URL.
45
+ */
42
46
  path: string
43
47
  message: string | undefined
48
+ /**
49
+ * Module URL of the first module that invalidated the update.
50
+ * @remarks This changed from a browser-safe URL to a module URL.
51
+ */
44
52
  firstInvalidatedBy: string
45
53
  }
46
54
 
@@ -38,7 +38,15 @@ export interface BundledDevUpdatePayload {
38
38
 
39
39
  export interface Update {
40
40
  type: 'js-update' | 'css-update'
41
+ /**
42
+ * Module URL of the HMR boundary.
43
+ * @remarks This changed from a browser-safe URL to a module URL.
44
+ */
41
45
  path: string
46
+ /**
47
+ * Module URL of the accepted module.
48
+ * @remarks This changed from a browser-safe URL to a module URL.
49
+ */
42
50
  acceptedPath: string
43
51
  timestamp: number
44
52
  /** @internal */
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
 
3
+ // @ts-ignore `less` may not be installed
4
+ import type Less from 'less'
3
5
  // @ts-ignore `sass` may not be installed
4
6
  import type DartSass from 'sass'
5
7
  // @ts-ignore `sass-embedded` may not be installed
6
8
  import type SassEmbedded from 'sass-embedded'
7
- // @ts-ignore `less` may not be installed
8
- import type Less from 'less'
9
9
  // @ts-ignore `stylus` may not be installed
10
10
  import type Stylus from 'stylus'
11
11