Skip to content

Commit

Permalink
Update code/frameworks/nextjs/src/nextImport/webpack.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Palkovic <[email protected]>
  • Loading branch information
kylegach and valentinpalkovic authored Dec 8, 2022
1 parent 55aaba3 commit dbbb9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/nextImport/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit dbbb9ea

Please sign in to comment.