Skip to content

Commit

Permalink
feat: asset type add bmp (#17439)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Jun 11, 2024
1 parent ceb5f43 commit ec287f8
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 @@ -54,6 +54,10 @@ declare module '*.apng' {
const src: string
export default src
}
declare module '*.bmp' {
const src: string
export default src
}
declare module '*.png' {
const src: string
export default src
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 @@ -80,6 +80,7 @@ export const CLIENT_DIR = path.dirname(CLIENT_ENTRY)
export const KNOWN_ASSET_TYPES = [
// images
'apng',
'bmp',
'png',
'jpe?g',
'jfif',
Expand Down

0 comments on commit ec287f8

Please sign in to comment.