We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sentry.properties
1 parent de51011 commit 1dea45eCopy full SHA for 1dea45e
packages/sveltekit/src/vite/sourceMaps.ts
@@ -42,13 +42,15 @@ export async function makeCustomSentryVitePlugin(options?: SentryVitePluginOptio
42
const svelteConfig = await loadSvelteConfig();
43
44
const outputDir = await getAdapterOutputDir(svelteConfig);
45
+ const hasSentryProperties = fs.existsSync(path.resolve(process.cwd(), 'sentry.properties'));
46
47
const defaultPluginOptions: SentryVitePluginOptions = {
48
include: [
49
{ paths: [`${outputDir}/client`] },
50
{ paths: [`${outputDir}/server/chunks`] },
51
{ paths: [`${outputDir}/server`], ignore: ['chunks/**'] },
52
],
53
+ configFile: hasSentryProperties ? 'sentry.properties' : undefined,
54
};
55
56
const mergedOptions = {
0 commit comments