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 23f0ac2 commit 65154e3Copy full SHA for 65154e3
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