@@ -92,57 +92,60 @@ function preload( deps?: string[], importerUrl?: string, ) { let promise: Promise<unknown> = Promise.resolve() // @ts-expect-error __VITE_IS_MODERN__ will be replaced with boolean later if (!__VITE_IS_MODERN__ || !deps || deps.length === 0) { ...
vitejs / vite Public Sponsor Notifications Fork 6.2k Star 68.6k Code Issues 443 Pull requests 145 Discussions Actions Projects 1 Security 6 Insights Publish Any Commit fix: typings for vite:preloadError (#17868) #1166 Sign in to view logs Summary Jobs build Run details Usage Work...
const e = new Event('vite:preloadError', { cancelable: true }) // @ts-expect-error custom payload const e = new Event('vite:preloadError', { cancelable: true, }) as VitePreloadErrorEvent e.payload = err window.dispatchEvent(e) ...
Describe the bug Vite library mode (format:es) generates __vitePreload function for async import. When the package is used as a dependency, an error will occur: Error: Identifier '__vitePreload' has already been declared I created a temp...
Describe the bug http://prntscr.com/WvyfJ-x97k4S Any idea why this could be happening? The chunks folder is there and it contains the module but it says it's missing for some reason. Electron-Vite Version 1.0.25 Electron Version 24.6.2 V...
Describe the bug When manually including vite/modulepreload-polyfill as per backend integration an error is thrown in the browser when running vite serve. Uncaught ReferenceError: __VITE_IS_MODERN__ is not defined <anonymous> http://loca...
Next generation frontend tooling. It's fast! Contribute to vitejs/vite development by creating an account on GitHub.
Description #18046 This addresses a regression where errors actually calling the preloaded module did not trigger a vite:preloadError event any more. cc: @patak-dev
@@ -145,20 +145,23 @@ function preload( ) } function handlePreloadError(err: Error) { const e = new Event('vite:preloadError', { cancelable: true, }) as VitePreloadErrorEvent e.payload = err window.dispatchEvent(e) if (!e.defaultPrevented) { throw err } } return promise.then((...
Next generation frontend tooling. It's fast! Contribute to vitejs/vite development by creating an account on GitHub.