From dbbb9ea2fe1f59da9a9b1ba9fccad7d6d5f31185 Mon Sep 17 00:00:00 2001 From: Kyle Gach Date: Thu, 8 Dec 2022 13:27:43 -0700 Subject: [PATCH] Update code/frameworks/nextjs/src/nextImport/webpack.ts Co-authored-by: Valentin Palkovic --- code/frameworks/nextjs/src/nextImport/webpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/frameworks/nextjs/src/nextImport/webpack.ts b/code/frameworks/nextjs/src/nextImport/webpack.ts index 5ebaeec7bbfe..fee082bbdb14 100644 --- a/code/frameworks/nextjs/src/nextImport/webpack.ts +++ b/code/frameworks/nextjs/src/nextImport/webpack.ts @@ -21,7 +21,7 @@ export function configureNextImport(baseConfig: WebpackConfig) { ); } - if (isNext12 && isNextVersionSmallerThan12dot2) { + if ((isNext12 && isNextVersionSmallerThan12dot2) || isNextVersionGreaterThan12) { baseConfig.plugins.push( new IgnorePlugin({ resourceRegExp: /next\/future\/image$/,