Skip to content

Commit aa3342a

Browse files
committed
feat(platforms): Add Svelte as a platform
add platform entries and links to Svelte docs
1 parent 36d1765 commit aa3342a

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

fixtures/integration-docs/_platforms.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@
187187
"type": "framework",
188188
"id": "javascript-remix",
189189
"name": "Remix"
190+
},
191+
{
192+
"link": "https://docs.sentry.io/platforms/javascript/guides/svelte/",
193+
"type": "framework",
194+
"id": "javascript-svelte",
195+
"name": "Svelte"
190196
}
191197
],
192198
"id": "javascript",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"html": "<div class=\"section\" id=\"installation\"></div>\n",
3+
"link": "https://docs.sentry.io/platforms/javascript/guides/svelte/",
4+
"id": "javascript-svelte",
5+
"name": "Svelte"
6+
}

static/app/components/events/interfaces/spans/utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ export function isEventFromBrowserJavaScriptSDK(event: EventTransaction): boolea
502502
'sentry.javascript.nextjs',
503503
'sentry.javascript.electron',
504504
'sentry.javascript.remix',
505+
'sentry.javascript.svelte',
505506
].includes(sdkName.toLowerCase());
506507
}
507508

static/app/data/platformCategories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const frontend = [
4242
'javascript-vue',
4343
'javascript-nextjs',
4444
'javascript-remix',
45+
'javascript-svelte',
4546
'unity',
4647
] as const;
4748

@@ -214,6 +215,7 @@ export const releaseHealth: PlatformKey[] = [
214215
'javascript-vue',
215216
'javascript-nextjs',
216217
'javascript-remix',
218+
'javascript-svelte',
217219
// mobile
218220
'android',
219221
'apple-ios',

0 commit comments

Comments
 (0)