From cacc22b171cd8a5049a64c2acf4978cd45f9fee6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 4 Jan 2022 23:24:45 +0000 Subject: [PATCH] Add mjs as JavaScript file extension `.mjs` is the extension recommended for JavaScript modules by the V8 docs: https://v8.dev/features/modules#mjs , and the extension is used by other tools like Babel. --- identify/extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/identify/extensions.py b/identify/extensions.py index 8267bad..5616aa4 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -113,6 +113,7 @@ 'md': {'text', 'markdown'}, 'mdx': {'text', 'mdx'}, 'mib': {'text', 'mib'}, + 'mjs': {'text', 'javascript'}, 'mk': {'text', 'makefile'}, 'ml': {'text', 'ocaml'}, 'mli': {'text', 'ocaml'},