Skip to content

Commit 3d8bb0b

Browse files
committed
move plugin
1 parent 4631cf3 commit 3d8bb0b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/solidstart/src/vite/sentrySolidStartVite.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ import type { SentrySolidStartPluginOptions } from './types';
99
export const sentrySolidStartVite = (options: SentrySolidStartPluginOptions = {}): Plugin[] => {
1010
const sentryPlugins: Plugin[] = [];
1111

12+
sentryPlugins.push(makeBuildInstrumentationFilePlugin(options));
13+
1214
if (process.env.NODE_ENV !== 'development') {
1315
if (options.sourceMapsUploadOptions?.enabled ?? true) {
1416
sentryPlugins.push(...makeSourceMapsVitePlugin(options));
1517
}
1618
}
1719

18-
// TODO: Ensure this file is source mapped too.
19-
// Placing this after the sentry vite plugin means this
20-
// file won't get a sourcemap and won't have a debug id injected.
21-
// Because the file is just copied over to the output server
22-
// directory the release injection file from sentry vite plugin
23-
// wouldn't resolve correctly otherwise.
24-
sentryPlugins.push(makeBuildInstrumentationFilePlugin(options));
25-
2620
return sentryPlugins;
2721
};
2822

0 commit comments

Comments
 (0)