File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ declare module '*.cur' {
106106 const src : string
107107 export default src
108108}
109+ declare module '*.jxl' {
110+ const src : string
111+ export default src
112+ }
109113
110114// media
111115declare module '*.mp4' {
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export const KNOWN_ASSET_TYPES = [
133133 'webp' ,
134134 'avif' ,
135135 'cur' ,
136+ 'jxl' ,
136137
137138 // media
138139 'mp4' ,
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ export function registerCustomMime(): void {
5757 mrmime . mimes [ 'flac' ] = 'audio/flac'
5858 // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
5959 mrmime . mimes [ 'eot' ] = 'application/vnd.ms-fontobject'
60+ // https://github.com/lukeed/mrmime/issues/10
61+ mrmime . mimes [ 'jxl' ] = 'image/jxl'
6062}
6163
6264export function renderAssetUrlInJS (
You can’t perform that action at this time.
0 commit comments