Skip to content

Commit ec287f8

Browse files
authored
feat: asset type add bmp (#17439)
1 parent ceb5f43 commit ec287f8

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/vite/client.d.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ declare module '*.apng' {
5454
constsrc: string
5555
exportdefaultsrc
5656
}
57+
declare module '*.bmp'{
58+
constsrc: string
59+
exportdefaultsrc
60+
}
5761
declare module '*.png'{
5862
constsrc: string
5963
exportdefaultsrc

‎packages/vite/src/node/constants.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const CLIENT_DIR = path.dirname(CLIENT_ENTRY)
8080
exportconstKNOWN_ASSET_TYPES=[
8181
// images
8282
'apng',
83+
'bmp',
8384
'png',
8485
'jpe?g',
8586
'jfif',

0 commit comments

Comments
 (0)