@sentry/rollup-plugin 2.16.1 → 2.18.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 +27 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ yarn add @sentry/rollup-plugin --dev
|
|
|
29
29
|
Using pnpm:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
pnpm
|
|
32
|
+
pnpm add @sentry/rollup-plugin --save-dev
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Example
|
|
@@ -85,6 +85,8 @@ export default {
|
|
|
85
85
|
- [`uploadLegacySourcemaps`](#releaseuploadlegacysourcemaps)
|
|
86
86
|
- [`reactComponentAnnotation`](#reactcomponentannotation)
|
|
87
87
|
- [`enabled`](#reactcomponentannotationenabled)
|
|
88
|
+
- [`moduleMetadata`](#modulemetadata)
|
|
89
|
+
- [`applicationKey`](#applicationkey)
|
|
88
90
|
- [`_experiments`](#_experiments)
|
|
89
91
|
- [`injectBuildInformation`](#_experimentsinjectbuildinformation)
|
|
90
92
|
|
|
@@ -383,6 +385,8 @@ Remove all previously uploaded artifacts for this release on Sentry before the u
|
|
|
383
385
|
|
|
384
386
|
Defaults to `false`.
|
|
385
387
|
|
|
388
|
+
**Deprecation Notice:** `cleanArtifacts` is deprecated and will does currently not do anything. Historically it was needed since uploading the same artifacts twice was not allowed. Nowadays, when uploading artifacts with the same name more than once to the same release on Sentry, Sentry will prefer the most recent artifact for source mapping.
|
|
389
|
+
|
|
386
390
|
### `release.uploadLegacySourcemaps`
|
|
387
391
|
|
|
388
392
|
Type: `string | IncludeEntry | Array<string | IncludeEntry>`
|
|
@@ -395,6 +399,8 @@ Each path can be given as a string or an object with more specific options.
|
|
|
395
399
|
The modern version of doing source maps upload is more robust and way easier to get working but has to inject a very small snippet of JavaScript into your output bundles.
|
|
396
400
|
In situations where this leads to problems (e.g subresource integrity) you can use this option as a fallback.
|
|
397
401
|
|
|
402
|
+
Please note that this option will not interact with any settings provided in the `sourcemaps` option. Using `uploadLegacySourcemaps` is a completely separate upload mechanism we provide for backwards-compatibility.
|
|
403
|
+
|
|
398
404
|
The `IncludeEntry` type looks as follows:
|
|
399
405
|
|
|
400
406
|
```ts
|
|
@@ -499,6 +505,26 @@ Type: `boolean`
|
|
|
499
505
|
|
|
500
506
|
Whether the component name annotate plugin should be enabled or not.
|
|
501
507
|
|
|
508
|
+
### `moduleMetadata`
|
|
509
|
+
|
|
510
|
+
Type: `Record<string, any> | (args: { org?: string; project?: string; release?: string; }) => Record<string, any>`
|
|
511
|
+
|
|
512
|
+
Metadata that should be associated with the built application.
|
|
513
|
+
|
|
514
|
+
The metadata is serialized and can be looked up at runtime from within the SDK (for example in the `beforeSend`, event processors, or the transport), allowing for custom event filtering logic or routing of events.
|
|
515
|
+
|
|
516
|
+
Metadata can either be passed directly or alternatively a callback can be provided that will be called with the following parameters:
|
|
517
|
+
|
|
518
|
+
- `org`: The organization slug.
|
|
519
|
+
- `project`: The project slug.
|
|
520
|
+
- `release`: The release name.
|
|
521
|
+
|
|
522
|
+
### `applicationKey`
|
|
523
|
+
|
|
524
|
+
Type: `string`
|
|
525
|
+
|
|
526
|
+
A key which will embedded in all the bundled files. The SDK will be able to use the key to apply filtering rules, for example using the `thirdPartyErrorFilterIntegration`.
|
|
527
|
+
|
|
502
528
|
### `_experiments`
|
|
503
529
|
|
|
504
530
|
Type: `string`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/rollup-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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.
|
|
52
|
+
"@sentry/bundler-plugin-core": "2.18.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.
|
|
65
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.
|
|
64
|
+
"@sentry-internal/eslint-config": "2.18.0",
|
|
65
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.18.0",
|
|
66
66
|
"@swc/core": "^1.2.205",
|
|
67
67
|
"@swc/jest": "^0.2.21",
|
|
68
68
|
"@types/jest": "^28.1.3",
|