Skip to content

Commit

Permalink
fix: Use Next.js' way of adding webpack plugins (#6149)
Browse files Browse the repository at this point in the history
* fix: Use Next.js' way of adding webpack plugins

* deps: Bump Sentry SDK to version `7.84.0`
  • Loading branch information
lforst committed Nov 30, 2023
1 parent f32ce23 commit cbf9c41
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 79 deletions.
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@sentry/nextjs": "~7.80.1",
"@sentry/nextjs": "~7.84.0",
"@types/node": "20.8.10",
"@vcarl/remark-headings": "~0.1.0",
"@vercel/analytics": "~1.1.1",
Expand Down

0 comments on commit cbf9c41

Please sign in to comment.