Skip to content

Include source files in your Node.js bundles #17120

@punkpeye

Description

@punkpeye

Problem Statement

At the moment, some of the stack traces are linking to source files, e.g.

… es/.pnpm/@[email protected]/node_modules/@sentry/node/src/integrations/tracing/fastify/index.ts in handleFastifyError.handleFastifyError at line 87:5
… es/.pnpm/@[email protected]/node_modules/@sentry/node/src/integrations/tracing/fastify/index.ts in <anonymous> at line 123:24
node:diagnostics_channel in Channel.publish at line 150:9

but these is only build directory in node_modules, making it impossible to look up the original site of the error.

Solution Brainstorm

Related to #17119 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions