Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a6d977e

Browse files
committed
Update mime-type db
1 parent 48ee7f2 commit a6d977e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/mime.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// MIME Types for Web
22
const mimeTypes: Record<string, string[]> = {
33
// application
4-
'application/javascript': ['js', 'mjs'],
4+
'application/javascript': ['js', 'mjs', 'cjs'],
55
'application/wasm': ['wasm'],
66
'application/json': ['json', 'map'],
77
'application/json5': ['json5'],
@@ -16,6 +16,7 @@ const mimeTypes: Record<string, string[]> = {
1616
'text/tsx': ['tsx'],
1717
'text/jsx': ['jsx'],
1818
'text/css': ['css'],
19+
'text/postcss': ['pcss', 'postcss'],
1920
'text/less': ['less'],
2021
'text/sass': ['sass', 'scss'],
2122
'text/stylus': ['stylus', 'styl'],
@@ -48,7 +49,7 @@ const mimeTypes: Record<string, string[]> = {
4849
'video/webm': ['webm'],
4950
}
5051

51-
// types map
52+
// map types
5253
const typesMap = Object.keys(mimeTypes).reduce((map, contentType) => {
5354
mimeTypes[contentType].forEach(ext => map.set(ext, contentType))
5455
return map

0 commit comments

Comments
 (0)