From 15395f16ff3baa4c0de17a3ddc19e56ff1f97a3a Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Fri, 6 Jan 2023 16:41:04 -0500 Subject: [PATCH] Update packages/remix-dev/cli/commands.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michaƫl De Boey --- packages/remix-dev/cli/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remix-dev/cli/commands.ts b/packages/remix-dev/cli/commands.ts index acb27401d5f..2fdce737bbd 100644 --- a/packages/remix-dev/cli/commands.ts +++ b/packages/remix-dev/cli/commands.ts @@ -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,