You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce99875
Browse filesBrowse the repository at this point in the historyBrowse files
docs(js): Use @sentry/bundler-plugins instead of deprecated plugin packages
Replace @sentry/{vite,rollup,webpack,esbuild}-plugin with
@sentry/bundler-plugins/<bundler>. Guides that already install
@sentry/node import from @sentry/node/<bundler>, so they need no new
dependency.
Add a Bundler Plugin Options page. Links to npm READMEs and the
bundler plugins repo now go to this page or to the bundler guides.
Pages for old versions are unchanged.
Copy file name to clipboardExpand all lines: docs/integrations/deployment/vercel/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Use Vercel to [link projects](#project-linking) for uploading source maps and no
67
67
68
68
- If you have not already done so, [instrument your code with Sentry](/platforms/javascript/).
69
69
- Ensure you have [installed a repository integration](/product/releases/setup/release-automation/) and added the relevant repository.
70
-
- Add a Sentry bundler plugin to your bundler configuration ([webpack plugin](https://www.npmjs.com/package/@sentry/webpack-plugin), [Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin), [Esbuild Plugin](https://www.npmjs.com/package/@sentry/esbuild-plugin), [Rollup Plugin](https://www.npmjs.com/package/@sentry/rollup-plugin)). If you are using Sentry's Next.js, or SvelteKit SDKs this will already have been done for you.
70
+
- Add a Sentry bundler plugin to your bundler configuration ([webpack plugin](/platforms/javascript/sourcemaps/uploading/webpack/), [Vite Plugin](/platforms/javascript/sourcemaps/uploading/vite/), [Esbuild Plugin](/platforms/javascript/sourcemaps/uploading/esbuild/), [Rollup Plugin](/platforms/javascript/sourcemaps/uploading/rollup/)). If you are using Sentry's Next.js, or SvelteKit SDKs this will already have been done for you.
71
71
- In case you already have a Vercel project integrated with Sentry, ensure the Sentry project you link is the one you're already using to report errors.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/configuration/filtering.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ This integration can be very helpful in reducing noise that's not related to you
57
57
58
58
<Alert>
59
59
60
-
**Prerequisite**: To use the `thirdPartyErrorFilterIntegration`, ensure you are using a bundler and one of [Sentry's bundler plugins](https://github.com/getsentry/sentry-javascript-bundler-plugins). For **Next.js**, set the [`applicationKey`](/platforms/javascript/guides/nextjs/configuration/build/#applicationKey) build option, which works for both Webpack and Turbopack builds.
60
+
**Prerequisite**: To use the `thirdPartyErrorFilterIntegration`, ensure you are using a bundler and one of <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/#applicationKey">Sentry's bundlerplugins</PlatformLink>. For **Next.js**, set the [`applicationKey`](/platforms/javascript/guides/nextjs/configuration/build/#applicationKey) build option, which works for both Webpack and Turbopack builds.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/session-replay/configuration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ replayIntegration({
125
125
});
126
126
```
127
127
128
-
4. (optional) To reduce bundle size, you can now <PlatformLinkto="/configuration/tree-shaking/">Tree Shake</PlatformLink> the default included worker script. If you are using one of the [Sentry Bundler Plugins](https://github.com/getsentry/sentry-javascript-bundler-plugins) (version 2.10.0 or later):
128
+
4. (optional) To reduce bundle size, you can now <PlatformLinkto="/configuration/tree-shaking/">Tree Shake</PlatformLink> the default included worker script. If you are using one of the <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/#bundleSizeOptimizations.excludeReplayWorker">Sentry Bundler Plugins</PlatformLink> (version 2.10.0 or later):
deny access to `.js.map` files, or by using <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload">Sentry Webpack Plugin's
option to delete source maps after they've been uploaded to Sentry.
116
116
</Alert>
117
117
118
-
Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
118
+
Learn more about configuring the plugin in our <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/">Sentry webpack plugin documentation</PlatformLink>.
119
119
120
120
### esbuild
121
121
122
122
Install the Sentry esbuild plugin:
123
123
124
124
```shell {tabTitle:npm}
125
-
npm install @sentry/esbuild-plugin --save-dev
125
+
npm install @sentry/bundler-plugins --save-dev
126
126
```
127
127
128
128
```shell {tabTitle:yarn}
129
-
yarn add @sentry/esbuild-plugin --dev
129
+
yarn add @sentry/bundler-plugins --dev
130
130
```
131
131
132
132
```shell {tabTitle:pnpm}
133
-
pnpm add @sentry/esbuild-plugin --save-dev
133
+
pnpm add @sentry/bundler-plugins --save-dev
134
134
```
135
135
136
-
Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/executors/browser-esbuild#examples) to register the Sentry esbuild plugin (`@sentry/esbuild-plugin`) in your `project.json` file. For example:
136
+
Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/executors/browser-esbuild#examples) to register the Sentry esbuild plugin (`@sentry/bundler-plugins/esbuild`) in your `project.json` file. For example:
137
137
138
138
```json {filename:project.json}
139
139
{
@@ -143,7 +143,7 @@ Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/execu
143
143
"options": {
144
144
"plugins": [
145
145
{
146
-
"path": "@sentry/esbuild-plugin",
146
+
"path": "@sentry/bundler-plugins/esbuild",
147
147
"options": {
148
148
"org": "___ORG_SLUG___",
149
149
"project": "___PROJECT_SLUG___",
@@ -160,8 +160,8 @@ Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/execu
160
160
<Alertlevel="warning">
161
161
Generating source maps **may expose them to the public**, potentially causing your
162
162
source code to be leaked. You can prevent this by configuring your server to
163
-
deny access to `.js.map` files, or by using [Sentry Esbuild Plugin's
deny access to `.js.map` files, or by using <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload">Sentry Esbuild Plugin's
Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
122
+
Learn more about configuring the plugin in our <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/">Sentry webpack plugin documentation</PlatformLink>.
123
123
124
124
### 3. Upload
125
125
@@ -139,7 +139,7 @@ We recommend running a production build to test your implementation.
139
139
<Alertlevel="warning">
140
140
Generating source maps **may expose them to the public**, potentially causing your
141
141
source code to be leaked. You can prevent this by configuring your server to
142
-
deny access to `.js.map` files, or by using [Sentry Webpack Plugin's
deny access to `.js.map` files, or by using <PlatformLinkto="/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload">Sentry Webpack Plugin's
0 commit comments