From 56715b0bbc7c0601b8ea2cc4fcd09e82e6e87b1a Mon Sep 17 00:00:00 2001 From: pshu Date: Thu, 30 Mar 2023 07:10:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=8E=A8=20add=20missing=20mjs?= =?UTF-8?q?=20ext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module_utils.rs b/src/module_utils.rs index b6c1e23..e286fe1 100644 --- a/src/module_utils.rs +++ b/src/module_utils.rs @@ -84,7 +84,7 @@ fn path_to_syntax(p: &Path) -> Syntax { if let Some(ext) = p.extension().and_then(OsStr::to_str) { match ext { - "js" | "jsx" => Syntax::Es(EsConfig { + "js" | "jsx" | "mjs" => Syntax::Es(EsConfig { decorators: true, decorators_before_export: true, jsx: true,