getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
142 stars 37 forks source link

Sourcemap upload not working for `.mjs` files #508

Closed memcorrupt closed 8 months ago

memcorrupt commented 8 months ago

Environment

vite 5.1.6 @sentry/vite-plugin 2.16.0

Steps to Reproduce

in vite config:

Expected Result

Source maps are uploaded.

Actual Result

No source maps are uploaded.

[sentry-vite-plugin] Debug: No `sourcemaps.assets` option provided, falling back to uploading detected build artifacts.
[sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
lforst commented 8 months ago

Hi, this seems like a bug and I think where it is. Do you know, did you define an output directory in vite?

lforst commented 7 months ago

@memcorrupt Hi, we just released version 2.16.1 of the package. Can you try whether it fixes the issue for you?