@sentry/nextjs
Version:
Official Sentry SDK for Next.js
17 lines (16 loc) • 745 B
TypeScript
import { LoaderThis } from './types';
export type ComponentAnnotationLoaderOptions = {
ignoredComponents?: string[];
};
/**
* Turbopack loader that annotates React components with `data-sentry-component`,
* `data-sentry-element`, and `data-sentry-source-file` attributes.
*
* This is the Turbopack equivalent of what `@sentry/webpack-plugin` does
* via the `reactComponentAnnotation` option and `@sentry/babel-plugin-component-annotate`.
*
* Options:
* - `ignoredComponents`: List of component names to exclude from annotation.
*/
export default function componentAnnotationLoader(this: LoaderThis<ComponentAnnotationLoaderOptions>, userCode: string): void;
//# sourceMappingURL=componentAnnotationLoader.d.ts.map