diff --git a/packages/remix-dev/compiler/js/compiler.ts b/packages/remix-dev/compiler/js/compiler.ts index 69edb21f993..1846fb9f79e 100644 --- a/packages/remix-dev/compiler/js/compiler.ts +++ b/packages/remix-dev/compiler/js/compiler.ts @@ -101,6 +101,7 @@ const createEsbuildConfig = ( externalPlugin(/^https?:\/\//, { sideEffects: false }), mdxPlugin(ctx), emptyModulesPlugin(ctx, /\.server(\.[jt]sx?)?$/), + emptyModulesPlugin(ctx, /^@remix-run\/(deno|cloudflare|node)(\/.*)?$/), nodeModulesPolyfillPlugin(), externalPlugin(/^node:.*/, { sideEffects: false }), ];