Skip to content

Commit cbf9c41

Browse files
authored
fix: Use Next.js' way of adding webpack plugins (#6149)
* fix: Use Next.js' way of adding webpack plugins * deps: Bump Sentry SDK to version `7.84.0`
1 parent f32ce23 commit cbf9c41

File tree

3 files changed

+79
-79
lines changed

3 files changed

+79
-79
lines changed

next.config.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { withSentryConfig } from '@sentry/nextjs';
44
import withNextIntl from 'next-intl/plugin';
5-
import webpack from 'webpack';
65

76
import {
87
BASE_PATH,
@@ -48,7 +47,7 @@ const nextConfig = {
4847
// we also configure ESLint to run its lint checking on all files (next lint)
4948
eslint: { dirs: ['.'], ignoreDuringBuilds: true },
5049
// Adds custom WebPack configuration to our Next.hs setup
51-
webpack: function (config) {
50+
webpack: function (config, { webpack }) {
5251
// Next.js WebPack Bundler does not know how to handle `.mjs` files on `node_modules`
5352
// This is not an issue when using TurboPack as it uses SWC and it is ESM-only
5453
// Once Next.js uses Turbopack for their build process we can remove this

package-lock.json

+77-76
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@radix-ui/react-select": "^2.0.0",
4848
"@radix-ui/react-tabs": "^1.0.4",
4949
"@radix-ui/react-toast": "^1.1.5",
50-
"@sentry/nextjs": "~7.80.1",
50+
"@sentry/nextjs": "~7.84.0",
5151
"@types/node": "20.8.10",
5252
"@vcarl/remark-headings": "~0.1.0",
5353
"@vercel/analytics": "~1.1.1",

0 commit comments

Comments
 (0)