Skip to content

Commit

Permalink
Next.js: Avoid interfering with the svgr loader
Browse files Browse the repository at this point in the history
  • Loading branch information
seanparmelee committed May 19, 2024
1 parent df51f12 commit 8a84014
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 8a84014

Please sign in to comment.