Skip to content

Commit

Permalink
feat: add support for .vtt type (#15538)
Browse files Browse the repository at this point in the history
  • Loading branch information
2-NOW authored Jan 10, 2024
1 parent adda370 commit a5c6d3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ declare module '*.m4a' {
const src: string
export default src
}
declare module '*.vtt' {
const src: string
export default src
}

// fonts
declare module '*.woff' {
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const KNOWN_ASSET_TYPES = [
'opus',
'mov',
'm4a',
'vtt',

// fonts
'woff2?',
Expand Down

0 comments on commit a5c6d3d

Please sign in to comment.