Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentry } from '@sentry/solidstart';
import { withSentry } from '@sentry/solidstart/vite';
import { defineConfig } from '@solidjs/start/config';

export default defineConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentry } from '@sentry/solidstart';
import { withSentry } from '@sentry/solidstart/vite';
import { defineConfig } from '@solidjs/start/config';

export default defineConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentry } from '@sentry/solidstart';
import { withSentry } from '@sentry/solidstart/vite';
import { defineConfig } from '@solidjs/start/config';

export default defineConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentry } from '@sentry/solidstart';
import { withSentry } from '@sentry/solidstart/vite';
import { defineConfig } from '@solidjs/start/config';

export default defineConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentry } from '@sentry/solidstart';
import { withSentry } from '@sentry/solidstart/vite';
import { defineConfig } from '@solidjs/start/config';

export default defineConfig(
Expand Down
9 changes: 8 additions & 1 deletion packages/solidstart/src/index.server.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
import { withSentry as _withSentry } from './config';

export * from './server';
export * from './config';

/**
* @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.
* This export will be removed in the next major version.
*/
export const withSentry = _withSentry;
8 changes: 7 additions & 1 deletion packages/solidstart/src/index.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
// exports in this file - which we do below.
import type { Client, Integration, Options, StackParser } from '@sentry/core';
import type * as clientSdk from './client';
import type * as configSdk from './config';
import type * as serverSdk from './server';

export * from './client';
export * from './server';
export * from './config';

/**
* @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.
* This export will be removed in the next major version.
*/
export declare const withSentry: typeof configSdk.withSentry;

/** Initializes Sentry Solid Start SDK */
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
Expand Down
1 change: 1 addition & 0 deletions packages/solidstart/src/vite/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { sentrySolidStart } from './sentrySolidStart';
export type { SentrySolidStartOptions } from './sentrySolidStart';
export { withSentry } from '../config/withSentry';
Loading