diff options
author | Joe Mooring <[email protected]> | 2022-02-09 22:51:37 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-02-10 11:51:28 +0100 |
commit | 3036d0ac9a3b28c258de4d090ccff2c4bd7e109f (patch) | |
tree | 625c175dc22bc2298de2c4a296521cef1543ae81 /media | |
parent | 6a238a7276c6ef40772a65bf2f262e6b4ae2da1e (diff) | |
download | hugo-3036d0ac9a3b28c258de4d090ccff2c4bd7e109f.tar.gz hugo-3036d0ac9a3b28c258de4d090ccff2c4bd7e109f.zip |
Update the application/javascript media type
Add jsm and mjs extensions.
Closes #9483
Diffstat (limited to 'media')
-rw-r--r-- | media/mediaType.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index 47a74ec56..4fceac222 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -229,7 +229,7 @@ var ( SASSType = newMediaType("text", "x-sass", []string{"sass"}) CSVType = newMediaType("text", "csv", []string{"csv"}) HTMLType = newMediaType("text", "html", []string{"html"}) - JavascriptType = newMediaType("application", "javascript", []string{"js"}) + JavascriptType = newMediaType("application", "javascript", []string{"js", "jsm", "mjs"}) TypeScriptType = newMediaType("application", "typescript", []string{"ts"}) TSXType = newMediaType("text", "tsx", []string{"tsx"}) JSXType = newMediaType("text", "jsx", []string{"jsx"}) |