Skip to content

Commit

Permalink
Merge pull request #27198 from seanparmelee/raw-conflicts-redux
Browse files Browse the repository at this point in the history
Next.js: Avoid interfering with the svgr loader
  • Loading branch information
valentinpalkovic authored May 21, 2024
2 parents ffb7ef7 + 8a84014 commit 84fa690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/swc/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const configureSWCLoader = async (
);

if (rawRule && typeof rawRule === 'object') {
rawRule.test = /^(?!__barrel_optimize__)/;
rawRule.exclude = /^__barrel_optimize__/;
}

baseConfig.module?.rules?.push({
Expand Down

0 comments on commit 84fa690

Please sign in to comment.