@sentry/webpack-plugin 4.4.0 → 4.6.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
@@ -56,6 +56,34 @@ module.exports = {
56
56
  };
57
57
  ```
58
58
 
59
+ ### Multi-Project Configuration
60
+
61
+ If you want to upload the same source maps to multiple Sentry projects:
62
+
63
+ ```js
64
+ // webpack.config.js
65
+ const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
66
+
67
+ module.exports = {
68
+ // ... other config above ...
69
+
70
+ devtool: "source-map",
71
+ plugins: [
72
+ sentryWebpackPlugin({
73
+ org: process.env.SENTRY_ORG,
74
+ project: ["frontend-team-a", "frontend-team-b", "frontend-team-c"],
75
+ authToken: process.env.SENTRY_AUTH_TOKEN,
76
+ }),
77
+ ],
78
+ };
79
+ ```
80
+
81
+ Or via environment variable:
82
+
83
+ ```bash
84
+ SENTRY_PROJECT=frontend-team-a,frontend-team-b,frontend-team-c
85
+ ```
86
+
59
87
  ## Options
60
88
 
61
89
  - [`org`](#org)
@@ -110,11 +138,11 @@ This value can also be specified via the `SENTRY_ORG` environment variable.
110
138
 
111
139
  ### `project`
112
140
 
141
+ Type: `string | string[]`
113
142
 
143
+ 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.
114
144
 
115
- The slug of the Sentry project associated with the app.
116
-
117
- This value can also be specified via the `SENTRY_PROJECT` environment variable.
145
+ 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`.
118
146
 
119
147
  ### `authToken`
120
148
 
@@ -147,7 +175,7 @@ Additional headers to send with every outgoing request to Sentry.
147
175
 
148
176
  Type: `boolean`
149
177
 
150
- Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. Defaults to `false`.
178
+ 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`.
151
179
 
152
180
  ### `silent`
153
181
 
@@ -242,7 +270,7 @@ urls and absolute/relative paths). If that path doesn't exist, it then looks for
242
270
 
243
271
  Note: This is mostly helpful for complex builds with custom source map generation. For example, if you put source
244
272
  maps into a separate directory and rewrite the `//# sourceMappingURL=` comment to something other than a relative
245
- directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
273
+ directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
246
274
  implement the resolution process yourself.
247
275
 
248
276
  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/webpack-plugin",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "Official Sentry Webpack 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/webpack-plugin",
@@ -53,7 +53,7 @@
53
53
  "prepack": "ts-node ./src/prepack.ts"
54
54
  },
55
55
  "dependencies": {
56
- "@sentry/bundler-plugin-core": "4.4.0",
56
+ "@sentry/bundler-plugin-core": "4.6.0",
57
57
  "unplugin": "1.0.1",
58
58
  "uuid": "^9.0.0"
59
59
  },
@@ -63,8 +63,8 @@
63
63
  "@babel/preset-typescript": "7.17.12",
64
64
  "@rollup/plugin-babel": "5.3.1",
65
65
  "@rollup/plugin-commonjs": "22.0.1",
66
- "@sentry-internal/eslint-config": "4.4.0",
67
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.4.0",
66
+ "@sentry-internal/eslint-config": "4.6.0",
67
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.6.0",
68
68
  "@swc/core": "^1.2.205",
69
69
  "@swc/jest": "^0.2.21",
70
70
  "@types/jest": "^28.1.3",