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 f231c4e commit fa7bf58Copy full SHA for fa7bf58
packages/remix/src/server/instrumentServer.ts
@@ -483,7 +483,7 @@ export const makeWrappedCreateRequestHandler = (options?: { instrumentTracing?:
483
export function instrumentServer(options?: { instrumentTracing?: boolean }): void {
484
const pkg = loadModule<{
485
createRequestHandler: CreateRequestHandlerFunction;
486
- }>('@remix-run/server-runtime', module);
+ }>('@remix-run/server-runtime', typeof module !== 'undefined' ? module : undefined);
487
488
if (!pkg) {
489
DEBUG_BUILD && debug.warn('Remix SDK was unable to require `@remix-run/server-runtime` package.');
0 commit comments