Skip to content

Commit e591a46

Browse files
committed
Add .cjs mimetype to common_types
Adds .cjs mimetype of `text/javascript` for CommonJS modules to common_types. See here for more information: https://nodejs.org/api/modules.html#enabling
1 parent 947bb46 commit e591a46

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ def _default_mime_types():
689689
'.pict': 'image/pict',
690690
'.pct' : 'image/pict',
691691
'.pic' : 'image/pict',
692+
'.cjs' : 'text/javascript',
692693
'.xul' : 'text/xul',
693694
}
694695

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add .cjs extension to common_types to give CommonJS modules a mimetype of
2+
"text/javascript"

0 commit comments

Comments
 (0)