From c2313c67d17b0cc809d5378eca366277e1706231 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 7 Mar 2023 11:53:36 -0500 Subject: [PATCH] Apply suggestions from code review 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/config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/remix-dev/config.ts b/packages/remix-dev/config.ts index 8510e170a2e..f800aa0fcba 100644 --- a/packages/remix-dev/config.ts +++ b/packages/remix-dev/config.ts @@ -484,11 +484,11 @@ export async function readConfig( ); } - let clientRuntime = deps["@remix-run/react"] ? "react" : undefined; + let clientRenderer = deps["@remix-run/react"] ? "react" : undefined; - if (!clientRuntime) { + if (!clientRenderer) { throw new Error( - `Could not determine runtime. Please install the following: @remix-run/react` + `Could not determine renderer. Please install the following: @remix-run/react` ); } @@ -528,7 +528,7 @@ export async function readConfig( }); } - entryServerFile = `${serverRuntime}/entry.server.${clientRuntime}-${type}.tsx`; + entryServerFile = `${serverRuntime}/entry.server.${clientRenderer}-${type}.tsx`; } if (userEntryClientFile) { @@ -556,7 +556,7 @@ export async function readConfig( ? "stream" : "string"; - entryClientFile = `entry.client.${clientRuntime}-${type}.tsx`; + entryClientFile = `entry.client.${clientRenderer}-${type}.tsx`; } let entryClientFilePath = userEntryClientFile