@sentry/rollup-plugin 4.4.0 → 4.5.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.
Files changed (2) hide show
  1. package/README.md +33 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -55,6 +55,34 @@ export default {
55
55
  };
56
56
  ```
57
57
 
58
+ ### Multi-Project Configuration
59
+
60
+ If you want to upload the same source maps to multiple Sentry projects:
61
+
62
+ ```js
63
+ // rollup.config.js
64
+ import { sentryRollupPlugin } from "@sentry/rollup-plugin";
65
+
66
+ export default {
67
+ plugins: [
68
+ sentryRollupPlugin({
69
+ org: process.env.SENTRY_ORG,
70
+ project: ["frontend-team-a", "frontend-team-b", "frontend-team-c"],
71
+ authToken: process.env.SENTRY_AUTH_TOKEN,
72
+ }),
73
+ ],
74
+ output: {
75
+ sourcemap: true,
76
+ },
77
+ };
78
+ ```
79
+
80
+ Or via environment variable:
81
+
82
+ ```bash
83
+ SENTRY_PROJECT=frontend-team-a,frontend-team-b,frontend-team-c
84
+ ```
85
+
58
86
  ## Options
59
87
 
60
88
  - [`org`](#org)
@@ -109,11 +137,11 @@ This value can also be specified via the `SENTRY_ORG` environment variable.
109
137
 
110
138
  ### `project`
111
139
 
140
+ Type: `string | string[]`
112
141
 
142
+ The slug of the Sentry project associated with the app. You can also provide an array of project slugs to upload source maps to multiple projects with the same release.
113
143
 
114
- The slug of the Sentry project associated with the app.
115
-
116
- This value can also be specified via the `SENTRY_PROJECT` environment variable.
144
+ This value can also be specified via the `SENTRY_PROJECT` environment variable. To specify multiple projects via the environment variable, separate them with commas: `SENTRY_PROJECT=project1,project2,project3`.
117
145
 
118
146
  ### `authToken`
119
147
 
@@ -146,7 +174,7 @@ Additional headers to send with every outgoing request to Sentry.
146
174
 
147
175
  Type: `boolean`
148
176
 
149
- Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. Defaults to `false`.
177
+ Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. This option also propagates the debug flag to the Sentry CLI by setting the `SENTRY_LOG_LEVEL` environment variable to `"debug"` if it's not already set. If you have explicitly set `SENTRY_LOG_LEVEL`, this option will be ignored. Defaults to `false`.
150
178
 
151
179
  ### `silent`
152
180
 
@@ -241,7 +269,7 @@ urls and absolute/relative paths). If that path doesn't exist, it then looks for
241
269
 
242
270
  Note: This is mostly helpful for complex builds with custom source map generation. For example, if you put source
243
271
  maps into a separate directory and rewrite the `//# sourceMappingURL=` comment to something other than a relative
244
- directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
272
+ directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
245
273
  implement the resolution process yourself.
246
274
 
247
275
  Use the `debug` option to print information about source map resolution.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/rollup-plugin",
3
- "version": "4.4.0",
3
+ "version": "4.5.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": "4.4.0",
52
+ "@sentry/bundler-plugin-core": "4.5.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": "4.4.0",
65
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.4.0",
64
+ "@sentry-internal/eslint-config": "4.5.0",
65
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.5.0",
66
66
  "@swc/core": "^1.2.205",
67
67
  "@swc/jest": "^0.2.21",
68
68
  "@types/jest": "^28.1.3",