Skip to content

Commit

Permalink
refactor: 🎨 add missing mjs ext
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly committed Mar 29, 2023
1 parent a2863b0 commit 56715b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 56715b0

Please sign in to comment.