Repository navigation
Conversation
Contributor
size-limit report 📦Compared: 7107c9f (PR test merge using develop at 9279303) Against: 9279303 (develop) · base run #66015 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 4 successful. See the run. Successful checks
|
timfish
force-pushed
the
feat/tanstackstart-delete-sourcemaps-after-upload
branch
from
November 13, 2026 11:35
f7fe7e8 to
0c37b6f
Compare
Base automatically changed from
feat/bundler-plugins-delete-without-upload
to
develop
November 13, 2026 13:49
…gin instead of globs The SDK turns on hidden source maps for the client build and for Nitro's server build. It now asks the bundler plugin to remove them through `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps`, which receive the Vite environment, instead of building `filesToDeleteAfterUpload` globs from the resolved output directories. As before, the maps are also removed when no upload runs. The maps of the Nitro `ssr` service stay, because the SDK's own Nitro plugin reads them after the build. A user's `filesToDeleteAfterUpload` is passed through and runs as well. Maps the user turned on with `build.sourcemap` or Nitro's options are kept. Maps of an output with its own `sourcemap` are removed when the SDK turned on source maps for its environment.
timfish
force-pushed
the
feat/tanstackstart-delete-sourcemaps-after-upload
branch
from
November 13, 2026 13:53
0c37b6f to
560f372
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TanStack Start built its own
filesToDeleteAfterUploadglobs from the resolved output directories, which needed a Vite 8 check and a list of Nitro service directories to stay out of. The SDK now passes the internaldeleteSourcemapsAfterUploadandsdkEnabledSourceMapsfunction options, which receive the Vite environment name. It returnstruefor the top-level decision when it setbuild.sourcemap: 'hidden', and for thenitroenvironment when it set Nitro'ssourcemapitself. The bundler plugin then removes those maps. As before, it also removes them when no upload runs, for example without an auth token.The
ssrNitro service keeps its maps.applyToEnvironmentkeeps the Sentry plugins out of Nitro service environments, and the SDK'smakeComposeNitroServiceSourceMapsPluginreads those maps in itsloadhook when Nitro bundles the service output again.Maps the user turned on with
build.sourcemap, an environment'sbuild.sourcemap, top-levelbuild.rolldownOptions.output.sourcemapor Nitro's options are kept, as before. A user'sfilesToDeleteAfterUploadis passed through and runs together with the SDK's deletion, as before.Two behaviour changes. First, when the SDK turned on source maps, an environment output that sets its own
sourcemap(for exampleenvironments.client.build.rolldownOptions.output.sourcemap) now has its maps removed too, visible ones included, like the other SDKs. Develop kept them. Second, on Vite 7 the old globs only coveredbuild.outDir, so the SDK-enablednitromaps in.output/serverstayed (the SDK warned about this). The bundler plugin now removes them too.The
tanstackstart-react-sourcemapsE2E app gets a no-upload variant that asserts no maps and nosourceMappingURLcomments in.output. Both TanStack Start E2E apps now record chunks without a map ingenerateBundle, because the plugin removes maps beforewriteBundle. This depends on #26281.