@sentry/vite-plugin 0.3.0 → 2.0.0-alpha.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 CHANGED
@@ -31,7 +31,7 @@ $ yarn add @sentry/vite-plugin --dev
31
31
 
32
32
  ```ts
33
33
  // vite.config.ts
34
- import sentryVitePlugin from "@sentry/vite-plugin";
34
+ import { sentryVitePlugin } from "@sentry/vite-plugin";
35
35
 
36
36
  export default {
37
37
  plugins: [
@@ -59,8 +59,7 @@ The Sentry Vite Plugin takes an options argument with the following properties:
59
59
  | project | `string` | optional | The slug of the Sentry project associated with the app. Can also be specified via the `SENTRY_PROJECT` environment variable. |
60
60
  | authToken | `string` | optional | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: `project:releases` (and `org:read` if `setCommits` option is used). Can also be specified via the `SENTRY_AUTH_TOKEN` env variable. |
61
61
  | url | `string` | optional | The base URL of your Sentry instance. Use this if you are using a self-hosted or Sentry instance other than sentry.io. This value can also be set via the `SENTRY_URL` environment variable. Defaults to https://sentry.io/, which is the correct value for SaaS customers. |
62
- | headers | `Record<string, string>` | optional | Headers added to every outgoing network request. This value does not set any env variable, and is overridden by `customHeader`. |
63
- | customHeader | `string` | optional | A header added to every outgoing network request. The format should be `header-key: header-value`. This value can also be specified via the `CUSTOM_HEADER` environment variable. |
62
+ | headers | `Record<string, string>` | optional | Headers added to every outgoing network request. |
64
63
  | vcsRemote | `string` | optional | Version control system remote name. This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable. Defaults to `'origin'`. |
65
64
  | releaseInjectionTargets | `array`/`RegExp`/`(string \| RegExp)[]`/`function(filePath: string): bool` | optional | Filter for modules that the release should be injected in. This option takes a string, a regular expression, or an array containing strings, regular expressions, or both. It's also possible to provide a filter function that takes the absolute path of a processed module. It should return `true` if the release should be injected into the module and `false` otherwise. String values of this option require a full match with the absolute path of the module. By default, the release will be injected into all modules - however, bundlers will include the injected release code only once per entrypoint. If release injection should be disabled, provide an empty array here. |
66
65
  | dist | `string` | optional | Unique identifier for the distribution, used to further segment your release. Usually your build number. |
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ var bundlerPluginCore = require('@sentry/bundler-plugin-core');
6
6
 
7
7
 
8
8
 
9
- Object.defineProperty(exports, 'default', {
9
+ Object.defineProperty(exports, 'sentryVitePlugin', {
10
10
  enumerable: true,
11
11
  get: function () { return bundlerPluginCore.sentryVitePlugin; }
12
12
  });
@@ -1,2 +1,2 @@
1
- export { sentryVitePlugin as default } from '@sentry/bundler-plugin-core';
1
+ export { sentryVitePlugin } from '@sentry/bundler-plugin-core';
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- export { sentryVitePlugin as default } from "@sentry/bundler-plugin-core";
2
- export type { Options } from "@sentry/bundler-plugin-core";
1
+ export { sentryVitePlugin } from "@sentry/bundler-plugin-core";
2
+ export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/vite-plugin",
3
- "version": "0.3.0",
3
+ "version": "2.0.0-alpha.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",
@@ -46,7 +46,7 @@
46
46
  "lint": "eslint ./src ./test"
47
47
  },
48
48
  "dependencies": {
49
- "@sentry/bundler-plugin-core": "0.3.0"
49
+ "@sentry/bundler-plugin-core": "2.0.0-alpha.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "7.18.5",
@@ -56,8 +56,8 @@
56
56
  "@rollup/plugin-commonjs": "22.0.1",
57
57
  "@rollup/plugin-json": "4.1.0",
58
58
  "@rollup/plugin-node-resolve": "13.3.0",
59
- "@sentry-internal/eslint-config": "0.3.0",
60
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "0.3.0",
59
+ "@sentry-internal/eslint-config": "2.0.0-alpha.0",
60
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.0.0-alpha.0",
61
61
  "@swc/core": "^1.2.205",
62
62
  "@swc/jest": "^0.2.21",
63
63
  "@types/jest": "^28.1.3",