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()); }