From 44dc6f2b6640a120f4fab4abbb12085b1fbbd609 Mon Sep 17 00:00:00 2001 From: Chris Chudzicki Date: Thu, 17 Oct 2024 11:07:19 -0400 Subject: [PATCH] remove unnecessary webpack customizations (#1704) --- frontends/main/next.config.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/frontends/main/next.config.js b/frontends/main/next.config.js index b068b3c220..a5aa839023 100644 --- a/frontends/main/next.config.js +++ b/frontends/main/next.config.js @@ -21,29 +21,6 @@ const processFeatureFlags = () => { /** @type {import('next').NextConfig} */ const nextConfig = { - webpack: (config, { webpack }) => { - config.plugins.push( - new webpack.IgnorePlugin({ - resourceRegExp: /\.test\.tsx$/, - }), - new webpack.IgnorePlugin({ - resourceRegExp: /mockAxios\.ts/, - }), - ) - - // Do not do this. Added to fix "import type", but causes a strage issue where - // the root page and layout think they're Client Components and "use client" - // directives not properly respected. - // https://nextjs.org/docs/app/api-reference/next-config-js/webpack - // - // config.module.rules.push({ - // test: /\.tsx?$/, - // use: [defaultLoaders.babel], - // }) - - return config - }, - async rewrites() { return [ /* Images moved from /static, though image paths are sometimes