vite 5.4.0-beta.1 → 5.4.1

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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

package/client.d.ts CHANGED
@@ -251,15 +251,6 @@ declare interface VitePreloadErrorEvent extends Event {
251
251
  payload: Error
252
252
  }
253
253
 
254
- declare interface Window {
255
- addEventListener(
256
- type: 'vite:preloadError',
257
- listener: (this: Window, ev: VitePreloadErrorEvent) => unknown,
258
- options?: boolean | AddEventListenerOptions,
259
- ): void
260
- removeEventListener(
261
- type: 'vite:preloadError',
262
- listener: (this: Window, ev: VitePreloadErrorEvent) => unknown,
263
- options?: boolean | EventListenerOptions,
264
- ): void
254
+ declare interface WindowEventMap {
255
+ 'vite:preloadError': VitePreloadErrorEvent
265
256
  }