@sentry/remix
Version:
Official Sentry SDK for Remix
27 lines • 1.38 kB
TypeScript
import type { Plugin, UserConfig } from 'vite';
import type { SentryRemixVitePluginOptions } from './types';
/**
* Adds the Sentry bundler plugin, which injects debug IDs and uploads source maps to Sentry.
*/
export declare function makeAddSentryVitePlugin(options: SentryRemixVitePluginOptions): Plugin[];
/**
* Enables "hidden" source maps if the user did not configure them.
*/
export declare function makeEnableSourceMapsPlugin(options: SentryRemixVitePluginOptions): Plugin;
/** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993)
*
* 1. User explicitly disabled source maps
* - keep this setting (emit a warning that errors won't be unminified in Sentry)
* - we won't upload anything
*
* 2. Users enabled source map generation (true, 'hidden', 'inline').
* - keep this setting (don't do anything - like deletion - besides uploading)
*
* 3. Users didn't set source maps generation
* - we enable 'hidden' source maps generation
* - configure `filesToDeleteAfterUpload` to delete all .map files (we emit a log about this)
*
* --> only exported for testing
*/
export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: SentryRemixVitePluginOptions): boolean | 'inline' | 'hidden';
//# sourceMappingURL=sourceMaps.d.ts.map