Skip to content

feat(sdk): Vite plugin for source map upload (#231) - #330

Merged
unjica merged 2 commits into
developfrom
feat/231-vite-source-map-plugin
Jul 9, 2026
Merged

unjica merged 2 commits into
developfrom
feat/231-vite-source-map-plugin

Conversation

@unjica

@unjica unjica commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds @telemetry-tracker/vite-plugin — uploads .map files to POST /api/project/source-maps after vite build using project API key + X-Project-Id
  • Supports optional deleteMapsAfterUpload (batch delete after all uploads succeed), self-hosted baseApiUrl, and Vite base path in bundle_url
  • Documents usage in docs/source-maps.md, new docs/sdk-vite.md, and Vue guide; CHANGELOG [Unreleased]

Test plan

  • pnpm lint && pnpm test && pnpm build
  • @telemetry-tracker/vite-plugin unit tests (upload headers, bundle URL, Vite base, delete-after-batch)
  • Publish @telemetry-tracker/[email protected] to npm after merge (maintainer)

Closes #231

Made with Cursor

Automates POST /api/project/source-maps after vite build with optional
map deletion, Vite base path support, and docs for Vite/Vue integrators.
Closes #231.

Co-authored-by: Cursor <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 using default effort 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.

Reviewed by Cursor Bugbot for commit 9c73b5c. Configure here.

When config.base is a full CDN URL, append the asset path to that origin
instead of joining it as a path segment on baseUrl.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 5f3bad0 into develop Jul 9, 2026
4 checks passed
@unjica
unjica deleted the feat/231-vite-source-map-plugin branch July 9, 2026 19:32
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.

Source maps: Vite plugin for automated upload

1 participant