This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Description
Right now underreact mostly works fine with typescript, but we could improve compatibility. At a minimum, the SVG loader needs to include .ts and .tsx file type support:
|
const svgLoader = { |
|
test: /\.svg$/, |
|
// Applies react transformation only to svgs imported |
|
// from Javascript files |
|
issuer: /\.(js|jsx)$/, |
|
use: { |
|
loader: '@mapbox/svg-react-transformer-loader', |
|
options: { |
|
template: 'fancy' |
|
} |
|
} |
|
}; |