diff --git a/packages/vite/client.d.ts b/packages/vite/client.d.ts index 3a9dd88f771f0d..e807d61414c5c7 100644 --- a/packages/vite/client.d.ts +++ b/packages/vite/client.d.ts @@ -1,5 +1,8 @@ /// +// virtual modules +declare module 'vite/modulepreload-polyfill' {} + // CSS modules type CSSModuleClasses = { readonly [key: string]: string } diff --git a/playground/backend-integration/frontend/entrypoints/main.ts b/playground/backend-integration/frontend/entrypoints/main.ts index a147ddbfffb421..f32a8084f2a90d 100644 --- a/playground/backend-integration/frontend/entrypoints/main.ts +++ b/playground/backend-integration/frontend/entrypoints/main.ts @@ -1,4 +1,3 @@ -// @ts-expect-error virtual module (TODO: investigate typing this) import 'vite/modulepreload-polyfill' import cssUrl from '../styles/url.css?url' import waterContainer from './water-container.svg'