We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 587e3a5 commit 6e8807dCopy full SHA for 6e8807d
packages/remix/src/server/instrumentServer.ts
@@ -480,7 +480,7 @@ export const makeWrappedCreateRequestHandler = (options?: { instrumentTracing?:
480
export function instrumentServer(options?: { instrumentTracing?: boolean }): void {
481
const pkg = loadModule<{
482
createRequestHandler: CreateRequestHandlerFunction;
483
- }>('@remix-run/server-runtime', module);
+ }>('@remix-run/server-runtime', typeof module !== 'undefined' ? module : undefined);
484
485
if (!pkg) {
486
DEBUG_BUILD && debug.warn('Remix SDK was unable to require `@remix-run/server-runtime` package.');
0 commit comments