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

(cherry picked from commit 84fa690)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed May 21, 2024
1 parent d3807eb commit d1a3e36
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 d1a3e36

Please sign in to comment.