@sentry/esbuild-plugin 2.3.0 → 2.4.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 +33 -29
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -56,34 +56,34 @@ require("esbuild").build({
|
|
|
56
56
|
|
|
57
57
|
## Options
|
|
58
58
|
|
|
59
|
-
- [`org`](#
|
|
60
|
-
- [`project`](#
|
|
61
|
-
- [`authToken`](#
|
|
62
|
-
- [`url`](#
|
|
63
|
-
- [`headers`](#
|
|
64
|
-
- [`debug`](#
|
|
65
|
-
- [`silent`](#
|
|
66
|
-
- [`errorHandler`](#
|
|
67
|
-
- [`telemetry`](#
|
|
68
|
-
- [`disable`](#
|
|
69
|
-
- [`sourcemaps`](#
|
|
70
|
-
- [`assets`](#
|
|
71
|
-
- [`ignore`](#
|
|
72
|
-
- [`rewriteSources`](#
|
|
73
|
-
- [`filesToDeleteAfterUpload`](#
|
|
74
|
-
- [`release`](#
|
|
75
|
-
- [`name`](#
|
|
76
|
-
- [`inject`](#
|
|
77
|
-
- [`create`](#
|
|
78
|
-
- [`finalize`](#
|
|
79
|
-
- [`dist`](#
|
|
80
|
-
- [`vcsRemote`](#
|
|
81
|
-
- [`setCommits`](#
|
|
82
|
-
- [`deploy`](#
|
|
83
|
-
- [`cleanArtifacts`](#
|
|
84
|
-
- [`uploadLegacySourcemaps`](#
|
|
85
|
-
- [`_experiments`](#
|
|
86
|
-
- [`injectBuildInformation`](#
|
|
59
|
+
- [`org`](#org)
|
|
60
|
+
- [`project`](#project)
|
|
61
|
+
- [`authToken`](#authtoken)
|
|
62
|
+
- [`url`](#url)
|
|
63
|
+
- [`headers`](#headers)
|
|
64
|
+
- [`debug`](#debug)
|
|
65
|
+
- [`silent`](#silent)
|
|
66
|
+
- [`errorHandler`](#errorhandler)
|
|
67
|
+
- [`telemetry`](#telemetry)
|
|
68
|
+
- [`disable`](#disable)
|
|
69
|
+
- [`sourcemaps`](#sourcemaps)
|
|
70
|
+
- [`assets`](#sourcemapsassets)
|
|
71
|
+
- [`ignore`](#sourcemapsignore)
|
|
72
|
+
- [`rewriteSources`](#sourcemapsrewritesources)
|
|
73
|
+
- [`filesToDeleteAfterUpload`](#sourcemapsfilestodeleteafterupload)
|
|
74
|
+
- [`release`](#release)
|
|
75
|
+
- [`name`](#releasename)
|
|
76
|
+
- [`inject`](#releaseinject)
|
|
77
|
+
- [`create`](#releasecreate)
|
|
78
|
+
- [`finalize`](#releasefinalize)
|
|
79
|
+
- [`dist`](#releasedist)
|
|
80
|
+
- [`vcsRemote`](#releasevcsremote)
|
|
81
|
+
- [`setCommits`](#releasesetcommits)
|
|
82
|
+
- [`deploy`](#releasedeploy)
|
|
83
|
+
- [`cleanArtifacts`](#releasecleanartifacts)
|
|
84
|
+
- [`uploadLegacySourcemaps`](#releaseuploadlegacysourcemaps)
|
|
85
|
+
- [`_experiments`](#_experiments)
|
|
86
|
+
- [`injectBuildInformation`](#_experimentsinjectbuildinformation)
|
|
87
87
|
|
|
88
88
|
### `org`
|
|
89
89
|
|
|
@@ -139,7 +139,7 @@ Suppresses all logs. Defaults to `false`.
|
|
|
139
139
|
|
|
140
140
|
Type: `(err: Error) => void`
|
|
141
141
|
|
|
142
|
-
When an error occurs during
|
|
142
|
+
When an error occurs during release creation or sourcemaps upload, the plugin will call this function.
|
|
143
143
|
|
|
144
144
|
By default, the plugin will simply throw an error, thereby stopping the bundling process. If an `errorHandler` callback is provided, compilation will continue, unless an error is thrown in the provided callback.
|
|
145
145
|
|
|
@@ -493,6 +493,10 @@ Defaults to `false`.
|
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
|
|
496
|
+
### Configuration File
|
|
497
|
+
|
|
498
|
+
As an additional configuration method, the Sentry esbuild plugin will pick up environment variables configured inside a `.env.sentry-build-plugin` file located in the current working directory when building your app.
|
|
499
|
+
|
|
496
500
|
## More information
|
|
497
501
|
|
|
498
502
|
- [Sentry Documentation](https://docs.sentry.io/quickstart/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/esbuild-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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": "2.
|
|
51
|
+
"@sentry/bundler-plugin-core": "2.4.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": "2.
|
|
62
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.
|
|
61
|
+
"@sentry-internal/eslint-config": "2.4.0",
|
|
62
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.4.0",
|
|
63
63
|
"@swc/core": "^1.2.205",
|
|
64
64
|
"@swc/jest": "^0.2.21",
|
|
65
65
|
"@types/jest": "^28.1.3",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"extends": "../../package.json"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
79
|
+
"node": ">= 14"
|
|
80
80
|
}
|
|
81
81
|
}
|