Skip to content

Commit

Permalink
Update packages/remix-dev/cli/commands.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
  • Loading branch information
mcansh and MichaelDeBoey authored Jan 6, 2023
1 parent c8a81f6 commit 15395f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export async function generateEntry(remixRoot: string, entry: string) {
// 3. if entry is js/jsx, convert to js
// otherwise, copy the entry file from the defaults
if (/\.jsx?$/.test(entry)) {
contents = contents ||= await fse.readFile(inputFile, "utf-8");
contents ||= await fse.readFile(inputFile, "utf-8");
let javascript = convertTSFileToJS({
filename: inputFile,
projectDir: remixRoot,
Expand Down

0 comments on commit 15395f1

Please sign in to comment.