Skip to content

Commit 17330d2

Browse files
authored
fix: add types for vite/modulepreload-polyfill (#22126)
1 parent 56f7336 commit 17330d2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/vite/client.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/// <reference path="./types/importMeta.d.ts" />
22

3+
// virtual modules
4+
declare module 'vite/modulepreload-polyfill' {}
5+
36
// CSS modules
47
type CSSModuleClasses = { readonly [key: string]: string }
58

playground/backend-integration/frontend/entrypoints/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-expect-error virtual module (TODO: investigate typing this)
21
import 'vite/modulepreload-polyfill'
32
import cssUrl from '../styles/url.css?url'
43
import waterContainer from './water-container.svg'

0 commit comments

Comments
 (0)