@sentry/rollup-plugin 2.22.7 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -92,6 +92,7 @@ export default {
92
92
  - [`excludeReplayWorker`](#bundlesizeoptimizationsexcludereplayworker)
93
93
  - [`reactComponentAnnotation`](#reactcomponentannotation)
94
94
  - [`enabled`](#reactcomponentannotationenabled)
95
+ - [`ignoredComponents`](#reactcomponentannotationignoredcomponents)
95
96
  - [`moduleMetadata`](#modulemetadata)
96
97
  - [`applicationKey`](#applicationkey)
97
98
  - [`_experiments`](#_experiments)
@@ -570,6 +571,12 @@ Type: `boolean`
570
571
 
571
572
  Whether the component name annotate plugin should be enabled or not.
572
573
 
574
+ ### `reactComponentAnnotation.ignoredComponents`
575
+
576
+ Type: `string[]`
577
+
578
+ A list of strings representing the names of components to ignore. The plugin will not perform apply `data-sentry` annotations on the DOM element for these components.
579
+
573
580
  ### `moduleMetadata`
574
581
 
575
582
  Type: `Record<string, any> | (args: { org?: string; project?: string; release?: string; }) => Record<string, any>`
package/dist/cjs/index.js CHANGED
@@ -10,10 +10,10 @@ function rollupReleaseInjectionPlugin(injectionCode) {
10
10
  rollup: bundlerPluginCore.createRollupReleaseInjectionHooks(injectionCode)
11
11
  };
12
12
  }
13
- function rollupComponentNameAnnotatePlugin() {
13
+ function rollupComponentNameAnnotatePlugin(ignoredComponents) {
14
14
  return {
15
15
  name: "sentry-rollup-component-name-annotate-plugin",
16
- rollup: bundlerPluginCore.createComponentNameAnnotateHooks()
16
+ rollup: bundlerPluginCore.createComponentNameAnnotateHooks(ignoredComponents)
17
17
  };
18
18
  }
19
19
  function rollupDebugIdInjectionPlugin() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options?: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupComponentNameAnnotatePlugin","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;;;;AAaA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,mDAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,iCAAiCA,GAAoB;EAC5D,OAAO;AACLH,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEG,kDAAgC,EAAC;GAC1C,CAAA;AACH,CAAA;AAEA,SAASC,4BAA4BA,GAAoB;EACvD,OAAO;AACLL,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEK,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACR,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEO,0DAAwC,CAACT,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASU,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLV,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEU,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLb,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEa,yDAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEnB,4BAA4B;AACpDoB,EAAAA,2BAA2B,EAAEf,iCAAiC;AAC9DgB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACd;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupComponentNameAnnotatePlugin(ignoredComponents?: string[]): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(ignoredComponents),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options?: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupComponentNameAnnotatePlugin","ignoredComponents","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;;;;AAaA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,mDAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,iCAAiCA,CAACC,iBAA4B,EAAmB;EACxF,OAAO;AACLJ,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEI,kDAAgC,CAACD,iBAAiB,CAAA;GAC3D,CAAA;AACH,CAAA;AAEA,SAASE,4BAA4BA,GAAoB;EACvD,OAAO;AACLN,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEM,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACT,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEQ,0DAAwC,CAACV,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASW,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEW,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLd,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEc,yDAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEpB,4BAA4B;AACpDqB,EAAAA,2BAA2B,EAAEhB,iCAAiC;AAC9DiB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACf;;;;;;;;"}
@@ -7,10 +7,10 @@ function rollupReleaseInjectionPlugin(injectionCode) {
7
7
  rollup: createRollupReleaseInjectionHooks(injectionCode)
8
8
  };
9
9
  }
10
- function rollupComponentNameAnnotatePlugin() {
10
+ function rollupComponentNameAnnotatePlugin(ignoredComponents) {
11
11
  return {
12
12
  name: "sentry-rollup-component-name-annotate-plugin",
13
- rollup: createComponentNameAnnotateHooks()
13
+ rollup: createComponentNameAnnotateHooks(ignoredComponents)
14
14
  };
15
15
  }
16
16
  function rollupDebugIdInjectionPlugin() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options?: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupComponentNameAnnotatePlugin","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;AAaA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,iCAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,iCAAiCA,GAAoB;EAC5D,OAAO;AACLH,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEG,gCAAgC,EAAC;GAC1C,CAAA;AACH,CAAA;AAEA,SAASC,4BAA4BA,GAAoB;EACvD,OAAO;AACLL,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEK,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACR,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEO,wCAAwC,CAACT,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASU,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLV,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEU,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLb,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEa,uCAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEnB,4BAA4B;AACpDoB,EAAAA,2BAA2B,EAAEf,iCAAiC;AAC9DgB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACd;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupComponentNameAnnotatePlugin(ignoredComponents?: string[]): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(ignoredComponents),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options?: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupComponentNameAnnotatePlugin","ignoredComponents","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;AAaA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,iCAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,iCAAiCA,CAACC,iBAA4B,EAAmB;EACxF,OAAO;AACLJ,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEI,gCAAgC,CAACD,iBAAiB,CAAA;GAC3D,CAAA;AACH,CAAA;AAEA,SAASE,4BAA4BA,GAAoB;EACvD,OAAO;AACLN,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEM,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACT,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEQ,wCAAwC,CAACV,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASW,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEW,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLd,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEc,uCAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEpB,4BAA4B;AACpDqB,EAAAA,2BAA2B,EAAEhB,iCAAiC;AAC9DiB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACf;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/rollup-plugin",
3
- "version": "2.22.7",
3
+ "version": "3.0.0",
4
4
  "description": "Official Sentry Rollup plugin",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/rollup-plugin",
@@ -49,7 +49,7 @@
49
49
  "prepack": "ts-node ./src/prepack.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@sentry/bundler-plugin-core": "2.22.7",
52
+ "@sentry/bundler-plugin-core": "3.0.0",
53
53
  "unplugin": "1.0.1"
54
54
  },
55
55
  "peerDependencies": {
@@ -61,8 +61,8 @@
61
61
  "@babel/preset-typescript": "7.17.12",
62
62
  "@rollup/plugin-babel": "5.3.1",
63
63
  "@rollup/plugin-node-resolve": "13.3.0",
64
- "@sentry-internal/eslint-config": "2.22.7",
65
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.22.7",
64
+ "@sentry-internal/eslint-config": "3.0.0",
65
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "3.0.0",
66
66
  "@swc/core": "^1.2.205",
67
67
  "@swc/jest": "^0.2.21",
68
68
  "@types/jest": "^28.1.3",