From 8fe00b9c8b2351d67dc379e2c14b51d5a046ac2a Mon Sep 17 00:00:00 2001 From: Luke Askew <720056+LukeAskew@users.noreply.github.com> Date: Fri, 19 May 2023 11:22:50 -0600 Subject: [PATCH] Update packages/remix-dev/compiler/server/compiler.ts Co-authored-by: Ivo Todorov --- packages/remix-dev/compiler/server/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remix-dev/compiler/server/compiler.ts b/packages/remix-dev/compiler/server/compiler.ts index c17814e0b0e..faf4bed62c2 100644 --- a/packages/remix-dev/compiler/server/compiler.ts +++ b/packages/remix-dev/compiler/server/compiler.ts @@ -60,7 +60,7 @@ const createEsbuildConfig = ( externalPlugin(/^node:.*/, { sideEffects: false }), ]; - if (ctx.config.serverPlatform !== "node") { + if (ctx.config.serverPlatform !== "node" && ctx.config.serverPlatform !== "neutral" ) { plugins.unshift(nodeModulesPolyfillPlugin()); }