Skip to content

test(tanstackstart-react): Add source map E2E app - #25363

Open
s1gr1d wants to merge 3 commits into
sig/tanstack-start-source-mapsfrom
sig/tanstack-start-source-maps-e2e
Open

s1gr1d wants to merge 3 commits into
sig/tanstack-start-source-mapsfrom
sig/tanstack-start-source-maps-e2e

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 14, 2026

Copy link
Copy Markdown
Member

Adds the tanstackstart-react-sourcemaps E2E app. It builds a TanStack Start app with Nitro against a mock Sentry server and checks the upload:

  • The source maps carry the client and server source.
  • Their source paths are relative to the project root.
  • Every debug ID has an uploaded source map.
  • No source map stays in the build output.

The app is optional in CI because Nitro 3 is in beta.

Stacked on #25360.

Refs #21012

@s1gr1d
s1gr1d marked this pull request as ready for review October 14, 2026 11:59
Build a TanStack Start app with Nitro against a mock Sentry server and check the upload: the
source maps carry the client and server source, their source paths are relative to the project
root, every debug ID has an uploaded source map, and no source map stays in the build output.

The app is optional in CI because Nitro 3 is in beta.
@s1gr1d
s1gr1d force-pushed the sig/tanstack-start-source-maps-e2e branch from 8613745 to 1d9d414 Compare October 14, 2026 12:08
@s1gr1d

s1gr1d commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1d9d414. Configure here.

Both markers are in the same route file, which client and server source maps embed completely,
so one uploaded map could pass both checks. Check each marker only in the source maps of the
files in its output directory, matched by debug ID.
@s1gr1d
s1gr1d requested review from JPeer264 and nicohrubec October 14, 2026 12:58
Comment on lines +62 to +63
// TODO: The uploader passes the emitted file paths to `glob` as patterns, so it skips a file whose path has glob
// characters, like Nitro's `_libs/@tanstack/react-router+[...].mjs`. Remove this when the uploader matches paths literally.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking issue for this: #25321

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant