Skip to content

Commit

Permalink
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
@@ -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
1 change: 1 addition & 0 deletions packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ export const CLIENT_DIR = path.dirname(CLIENT_ENTRY)
export const KNOWN_ASSET_TYPES = [
// images
'apng',
'bmp',
'png',
'jpe?g',
'jfif',

0 comments on commit ec287f8

Please sign in to comment.