Skip to content

Commit e08cf73

Browse files
committed
Merge branch 'dev' into feat/input#10
2 parents 687e507 + 05f856f commit e08cf73

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

next.config.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11

22
import type { NextConfig } from 'next';
33

4+
45
const 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: /\.svg$/i,
25+
test: /.svg$/i,
2526
resourceQuery: /url/,
2627
},
2728
{
28-
test: /\.svg$/i,
29+
test: /.svg$/i,
2930
issuer: fileLoaderRule.issuer,
3031
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
3132
use: [
@@ -39,7 +40,7 @@ const nextConfig: NextConfig = {
3940
],
4041
}
4142
);
42-
fileLoaderRule.exclude = /\.svg$/i;
43+
fileLoaderRule.exclude = /.svg$/i;
4344
return config;
4445
},
4546
};

0 commit comments

Comments
 (0)