Skip to content

Commit

Permalink
Update packages/remix-dev/compiler/server/compiler.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ivo Todorov <ivo.gtodorov@gmail.com>
  • Loading branch information
LukeAskew and ivogt authored May 19, 2023
1 parent e2d56f8 commit 8fe00b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/compiler/server/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 8fe00b9

Please sign in to comment.