Skip to content

fix(bundler-plugins): Files with glob characters in their path are not uploaded #25321

Open

Description

@s1gr1d

When sourcemaps.assets is not set, the bundler plugin does not upload emitted files whose path contains glob characters. It also does not upload their source maps. The plugin does not log a warning.

Nitro 3 gives dependency chunks names like these:

  • _libs/_sentry/node+[...].mjs (Nuxt 5)
  • _libs/@tanstack/react-router+[...].mjs (TanStack Start)

Because these chunks are not uploaded, Sentry cannot symbolicate errors in them.

Root cause

  1. writeBundle finds the emitted files with a glob (packages/bundler-plugins/src/rollup/index.ts). The result is a list of literal file paths.
  2. uploadSourcemaps gives these paths to globFiles again, as patterns (packages/bundler-plugins/src/core/build-plugin-manager.ts, globAssets = buildArtifactPaths).
  3. In a pattern, [...] is a character class, so the path does not match itself. The file is dropped.

Possible fix

Do not glob the detected paths again. Use them as they are and apply sourcemaps.ignore to them, or escape them with glob.escape() first. A user-supplied sourcemaps.assets must still be globbed.

Tests

Remove the TODO exemption debugIdsOfFilesWithGlobCharacters in these files:

  • dev-packages/e2e-tests/test-applications/nuxt-5-sourcemaps/assert-build.ts
  • dev-packages/e2e-tests/test-applications/tanstackstart-react-sourcemaps/assert-build.ts

Activity

  1. linear-code commented on Oct 13, 2026

    @linear-code
  2. added a commit that references this issue on Oct 14, 2026
    e10c902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions