diff --git a/packages/vite/client.d.ts b/packages/vite/client.d.ts index 9c4f4cd776899e..36982b457d0b2f 100644 --- a/packages/vite/client.d.ts +++ b/packages/vite/client.d.ts @@ -128,11 +128,14 @@ declare module '*.aac' { const src: string export default src } - declare module '*.opus' { const src: string export default src } +declare module '*.mov' { + const src: string + export default src +} // fonts declare module '*.woff' { diff --git a/packages/vite/src/node/constants.ts b/packages/vite/src/node/constants.ts index 5d8d0d10ca7839..b2b50f038dfa2f 100644 --- a/packages/vite/src/node/constants.ts +++ b/packages/vite/src/node/constants.ts @@ -118,6 +118,7 @@ export const KNOWN_ASSET_TYPES = [ 'flac', 'aac', 'opus', + 'mov', // fonts 'woff2?',