-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Definitive guide to Sourcemaps and more with Sveltekit 🎉 #43301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Assigning to @getsentry/support for routing, due by Wed Jan 18 2023 01:00:00 GMT+0000. ⏲️ |
Hey @alexbjorlig great to see you excited around this! We're working on improving our support here by building a first class SDK for just SvelteKit (where everything should just work out of the box!): getsentry/sentry-javascript#6692 See some of our experimental work here: getsentry/sentry-javascript#5838 (comment) I know @Lms24 has been looking at sourcemaps, perhaps he can help give some more insight here? |
Routing to @getsentry/team-web-sdk-frontend for triage, due by Thu Jan 19 2023 01:00:00 GMT+0000. ⏲️ |
@alexbjorlig we do have a Vite Plugin, that should upload sourcemaps out of the box. Perhaps this can help get you started? https://docs.sentry.io/platforms/javascript/guides/svelte/sourcemaps/uploading/vite/ |
Hi @AbhiPrasad - that could be a possible solution. But how do I know what the folder should be here? Does this not depend on the adapter?
|
|
Hi @alexbjorlig thanks for opening this issue. As already mentioned by @AbhiPrasad, I took a look at source maps. There's probably room for improvement but I added a small section to our GH discussion with some preliminary instructions: getsentry/sentry-javascript#5838 (reply in thread) |
Hey @alexbjorlig we decided we're going to use getsentry/sentry-javascript#6692 to track our work, so closing this issue as a result. Please open issues in the JavaScript SDK repo if you have any more questions/concerns! Thanks again for reaching out. |
Problem Statement
SvelteKit is awesome - and it's now version 1 (fresh out of beta)!
One of the great things about SvelteKit is the ability to abstract away the hosting provider. You write the same code, and then you can use an adapter to deploy where you want. It could be
The good question now is: How do we get source maps to Sentry?
And follow-ups like:
It would be such a cool thing to solve ❤️ (Sveltekit actually mentions Sentry already in certain places in the docs).
Solution Brainstorm
I guess the first path to a more robust solution, would be documentation about how sourcemaps can be synced for the different adapters (if there is any change at all???)
Ultimately an integration with the Sentry CLI would be 🥷
Let me know what you think? - How do you sync source maps from a Sveltekit project?
Our team has not done it yet 🫣
The text was updated successfully, but these errors were encountered: