Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use Next.js' way of adding webpack plugins #6149

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading