@sentry/esbuild-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 +31 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -53,6 +53,32 @@ require("esbuild").build({
53
53
  });
54
54
  ```
55
55
 
56
+ ### Multi-Project Configuration
57
+
58
+ If you want to upload the same source maps to multiple Sentry projects:
59
+
60
+ ```js
61
+ // esbuild.config.js
62
+ const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
63
+
64
+ require("esbuild").build({
65
+ sourcemap: true,
66
+ plugins: [
67
+ sentryEsbuildPlugin({
68
+ org: process.env.SENTRY_ORG,
69
+ project: ["frontend-team-a", "frontend-team-b", "frontend-team-c"],
70
+ authToken: process.env.SENTRY_AUTH_TOKEN,
71
+ }),
72
+ ],
73
+ });
74
+ ```
75
+
76
+ Or via environment variable:
77
+
78
+ ```bash
79
+ SENTRY_PROJECT=frontend-team-a,frontend-team-b,frontend-team-c
80
+ ```
81
+
56
82
  ## Options
57
83
 
58
84
  - [`org`](#org)
@@ -105,11 +131,11 @@ This value can also be specified via the `SENTRY_ORG` environment variable.
105
131
 
106
132
  ### `project`
107
133
 
134
+ Type: `string | string[]`
108
135
 
136
+ 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.
109
137
 
110
- The slug of the Sentry project associated with the app.
111
-
112
- This value can also be specified via the `SENTRY_PROJECT` environment variable.
138
+ 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`.
113
139
 
114
140
  ### `authToken`
115
141
 
@@ -142,7 +168,7 @@ Additional headers to send with every outgoing request to Sentry.
142
168
 
143
169
  Type: `boolean`
144
170
 
145
- Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. Defaults to `false`.
171
+ 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`.
146
172
 
147
173
  ### `silent`
148
174
 
@@ -237,7 +263,7 @@ urls and absolute/relative paths). If that path doesn't exist, it then looks for
237
263
 
238
264
  Note: This is mostly helpful for complex builds with custom source map generation. For example, if you put source
239
265
  maps into a separate directory and rewrite the `//# sourceMappingURL=` comment to something other than a relative
240
- directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
266
+ directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
241
267
  implement the resolution process yourself.
242
268
 
243
269
  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/esbuild-plugin",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Official Sentry esbuild 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/esbuild-plugin",
@@ -48,7 +48,7 @@
48
48
  "prepack": "ts-node ./src/prepack.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@sentry/bundler-plugin-core": "4.4.0",
51
+ "@sentry/bundler-plugin-core": "4.5.0",
52
52
  "unplugin": "1.0.1",
53
53
  "uuid": "^9.0.0"
54
54
  },
@@ -58,8 +58,8 @@
58
58
  "@babel/preset-typescript": "7.17.12",
59
59
  "@rollup/plugin-babel": "5.3.1",
60
60
  "@rollup/plugin-node-resolve": "13.3.0",
61
- "@sentry-internal/eslint-config": "4.4.0",
62
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.4.0",
61
+ "@sentry-internal/eslint-config": "4.5.0",
62
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "4.5.0",
63
63
  "@swc/core": "^1.2.205",
64
64
  "@swc/jest": "^0.2.21",
65
65
  "@types/jest": "^28.1.3",