File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11
22import type { NextConfig } from 'next' ;
33
4+
45const nextConfig : NextConfig = {
56 // TurboPack 설정
67 experimental : {
78 turbo : {
89 rules : {
9- '* .svg' : {
10+ '.svg' : {
1011 loaders : [ '@svgr/webpack' ] ,
11- as : '* .js' ,
12+ as : '.js' ,
1213 } ,
1314 } ,
1415 } ,
@@ -21,11 +22,11 @@ const nextConfig: NextConfig = {
2122 config . module . rules . push (
2223 {
2324 ...fileLoaderRule ,
24- test : / \ .s v g $ / i,
25+ test : / .s v g $ / i,
2526 resourceQuery : / u r l / ,
2627 } ,
2728 {
28- test : / \ .s v g $ / i,
29+ test : / .s v g $ / i,
2930 issuer : fileLoaderRule . issuer ,
3031 resourceQuery : { not : [ ...fileLoaderRule . resourceQuery . not , / u r l / ] } ,
3132 use : [
@@ -39,7 +40,7 @@ const nextConfig: NextConfig = {
3940 ] ,
4041 }
4142 ) ;
42- fileLoaderRule . exclude = / \ .s v g $ / i;
43+ fileLoaderRule . exclude = / .s v g $ / i;
4344 return config ;
4445 } ,
4546} ;
You can’t perform that action at this time.
0 commit comments