MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / sentryVitePlugin

Function sentryVitePlugin

packages/bundler-plugins/src/vite/index.ts:24–31  ·  view source on GitHub ↗
(options?: SentryRollupPluginOptions)

Source from the content-addressed store, hash-verified

22}
23
24export const sentryVitePlugin = (options?: SentryRollupPluginOptions): SentryVitePlugin[] => {
25 return [
26 {
27 enforce: 'pre',
28 ..._rollupPluginInternal(options, 'vite', getViteMajorVersion()),
29 },
30 ];
31};
32
33export type { Options as SentryVitePluginOptions } from '../core';
34export { sentryCliBinaryExists } from '../core';

Calls 2

_rollupPluginInternalFunction · 0.90
getViteMajorVersionFunction · 0.85

Tested by

no test coverage detected