Skip to content

Commit d23a4b8

Browse files
committed
Use js extension for node module output
1 parent 4d63628 commit d23a4b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/cli-support/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,7 @@ impl Output {
663663

664664
// And now that we've got all our JS and TypeScript, actually write it
665665
// out to the filesystem.
666-
let extension = if gen.mode.uses_es_modules() {
667-
"mjs"
668-
} else {
669-
"js"
670-
};
666+
let extension = "js";
671667

672668
fn write<P, C>(path: P, contents: C) -> Result<(), anyhow::Error>
673669
where

0 commit comments

Comments
 (0)