Skip to content

Commit 5e5a797

Browse files
committed
fix: lint errors and nextjs re-export
1 parent a643420 commit 5e5a797

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

packages/nextjs/src/config/templates/routeHandlerWrapperTemplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function wrapHandler<T>(handler: T, method: 'GET' | 'POST' | 'PUT' | 'PATCH' | '
6060
// @ts-expect-error See above
6161
export * from '__SENTRY_WRAPPING_TARGET_FILE__';
6262

63+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
6364
export default routeModule.default;
6465

6566
type RouteHandler = (...args: unknown[]) => unknown;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// @ts-expect-error This will be replaced with the user's sentry config gile
21
import '__SENTRY_CONFIG_IMPORT_PATH__';
32
// @ts-expect-error This is the file we're wrapping
43
import * as wrappingTargetModule from '__SENTRY_WRAPPING_TARGET_FILE__';
54

65
// @ts-expect-error This is the file we're wrapping
76
export * from '__SENTRY_WRAPPING_TARGET_FILE__';
87

8+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
99
export default wrappingTargetModule.default;
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
export * from './config';
22
export * from './server';
3-
// FIXME: Explicitly re-export from @sentry/node to ensure CJS builds properly include all exports
4-
// (Rolldown doesn't transitively handle export * in CJS builds)
5-
export * from '@sentry/node';

0 commit comments

Comments
 (0)