Skip to content

Commit

Permalink
Use js extension for node module output
Browse files Browse the repository at this point in the history
  • Loading branch information
Systemcluster committed Jul 31, 2024
1 parent 4d63628 commit d23a4b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,11 +663,7 @@ impl Output {

// And now that we've got all our JS and TypeScript, actually write it
// out to the filesystem.
let extension = if gen.mode.uses_es_modules() {
"mjs"
} else {
"js"
};
let extension = "js";

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

0 comments on commit d23a4b8

Please sign in to comment.