@sentry/vite-plugin 2.3.0 → 2.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 +35 -31
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -29,7 +29,7 @@ yarn add @sentry/vite-plugin --dev
29
29
  Using pnpm:
30
30
 
31
31
  ```bash
32
- pnpm install @sentry/vite-plugin --dev
32
+ pnpm add -D @sentry/vite-plugin
33
33
  ```
34
34
 
35
35
  ## Example
@@ -63,34 +63,34 @@ export default defineConfig({
63
63
 
64
64
  ## Options
65
65
 
66
- - [`org`](#optionorg)
67
- - [`project`](#optionproject)
68
- - [`authToken`](#optionauthtoken)
69
- - [`url`](#optionurl)
70
- - [`headers`](#optionheaders)
71
- - [`debug`](#optiondebug)
72
- - [`silent`](#optionsilent)
73
- - [`errorHandler`](#optionerrorhandler)
74
- - [`telemetry`](#optiontelemetry)
75
- - [`disable`](#optiondisable)
76
- - [`sourcemaps`](#optionsourcemaps)
77
- - [`assets`](#optionsourcemapsassets)
78
- - [`ignore`](#optionsourcemapsignore)
79
- - [`rewriteSources`](#optionsourcemapsrewritesources)
80
- - [`filesToDeleteAfterUpload`](#optionsourcemapsfilestodeleteafterupload)
81
- - [`release`](#optionrelease)
82
- - [`name`](#optionreleasename)
83
- - [`inject`](#optionreleaseinject)
84
- - [`create`](#optionreleasecreate)
85
- - [`finalize`](#optionreleasefinalize)
86
- - [`dist`](#optionreleasedist)
87
- - [`vcsRemote`](#optionreleasevcsremote)
88
- - [`setCommits`](#optionreleasesetcommits)
89
- - [`deploy`](#optionreleasedeploy)
90
- - [`cleanArtifacts`](#optionreleasecleanartifacts)
91
- - [`uploadLegacySourcemaps`](#optionreleaseuploadlegacysourcemaps)
92
- - [`_experiments`](#option_experiments)
93
- - [`injectBuildInformation`](#option_experimentsinjectbuildinformation)
66
+ - [`org`](#org)
67
+ - [`project`](#project)
68
+ - [`authToken`](#authtoken)
69
+ - [`url`](#url)
70
+ - [`headers`](#headers)
71
+ - [`debug`](#debug)
72
+ - [`silent`](#silent)
73
+ - [`errorHandler`](#errorhandler)
74
+ - [`telemetry`](#telemetry)
75
+ - [`disable`](#disable)
76
+ - [`sourcemaps`](#sourcemaps)
77
+ - [`assets`](#sourcemapsassets)
78
+ - [`ignore`](#sourcemapsignore)
79
+ - [`rewriteSources`](#sourcemapsrewritesources)
80
+ - [`filesToDeleteAfterUpload`](#sourcemapsfilestodeleteafterupload)
81
+ - [`release`](#release)
82
+ - [`name`](#releasename)
83
+ - [`inject`](#releaseinject)
84
+ - [`create`](#releasecreate)
85
+ - [`finalize`](#releasefinalize)
86
+ - [`dist`](#releasedist)
87
+ - [`vcsRemote`](#releasevcsremote)
88
+ - [`setCommits`](#releasesetcommits)
89
+ - [`deploy`](#releasedeploy)
90
+ - [`cleanArtifacts`](#releasecleanartifacts)
91
+ - [`uploadLegacySourcemaps`](#releaseuploadlegacysourcemaps)
92
+ - [`_experiments`](#_experiments)
93
+ - [`injectBuildInformation`](#_experimentsinjectbuildinformation)
94
94
 
95
95
  ### `org`
96
96
 
@@ -146,7 +146,7 @@ Suppresses all logs. Defaults to `false`.
146
146
 
147
147
  Type: `(err: Error) => void`
148
148
 
149
- When an error occurs during rlease creation or sourcemaps upload, the plugin will call this function.
149
+ When an error occurs during release creation or sourcemaps upload, the plugin will call this function.
150
150
 
151
151
  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.
152
152
 
@@ -179,7 +179,7 @@ Completely disables all functionality of the plugin. Defaults to `false`.
179
179
 
180
180
 
181
181
 
182
- Options for source maps uploading. Leave this option undefined if you do not want to upload source maps to Sentry.
182
+ Options for uploading source maps.
183
183
  ### `sourcemaps.assets`
184
184
 
185
185
  Type: `string | string[]`
@@ -500,6 +500,10 @@ Defaults to `false`.
500
500
 
501
501
 
502
502
 
503
+ ### Configuration File
504
+
505
+ As an additional configuration method, the Sentry Vite plugin will pick up environment variables configured inside a `.env.sentry-build-plugin` file located in the current working directory when building your app.
506
+
503
507
  ## More information
504
508
 
505
509
  - [Sentry Documentation](https://docs.sentry.io/quickstart/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/vite-plugin",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Official Sentry Vite 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/vite-plugin",
@@ -48,7 +48,7 @@
48
48
  "prepack": "ts-node ./src/prepack.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@sentry/bundler-plugin-core": "2.3.0",
51
+ "@sentry/bundler-plugin-core": "2.5.0",
52
52
  "unplugin": "1.0.1"
53
53
  },
54
54
  "devDependencies": {
@@ -57,8 +57,8 @@
57
57
  "@babel/preset-typescript": "7.17.12",
58
58
  "@rollup/plugin-babel": "5.3.1",
59
59
  "@rollup/plugin-node-resolve": "13.3.0",
60
- "@sentry-internal/eslint-config": "2.3.0",
61
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.3.0",
60
+ "@sentry-internal/eslint-config": "2.5.0",
61
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.5.0",
62
62
  "@swc/core": "^1.2.205",
63
63
  "@swc/jest": "^0.2.21",
64
64
  "@types/jest": "^28.1.3",
@@ -74,6 +74,6 @@
74
74
  "extends": "../../package.json"
75
75
  },
76
76
  "engines": {
77
- "node": ">= 10"
77
+ "node": ">= 14"
78
78
  }
79
79
  }