diff --git a/manual-types.d.ts b/manual-types.d.ts index 71aefd39..c0f4e351 100644 --- a/manual-types.d.ts +++ b/manual-types.d.ts @@ -8,8 +8,3 @@ declare module '*.css' { const content: any; export default content; } - -declare module '*.json' { - const json: any; - export default json; -} diff --git a/webpack.config.ts b/webpack.config.ts index 13a865b0..d1cbf2d4 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -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' }, + }, + ], }, ], },