Skip to content

Commit

Permalink
Switch svgr to use typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 25, 2024
1 parent 4a6bdad commit d58bc21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions manual-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ declare module '*.css' {
const content: any;
export default content;
}

declare module '*.json' {
const json: any;
export default json;
}
7 changes: 6 additions & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ const baseConfig: webpack.Configuration = {
{
test: /\.svg$/,
issuer: /\.tsx?$/,
use: [{ loader: '@svgr/webpack' }],
use: [
{
loader: '@svgr/webpack',
options: { typescript: true, ext: 'tsx' },
},
],
},
],
},
Expand Down

0 comments on commit d58bc21

Please sign in to comment.