This repository was archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
support usage with typescript #113
Copy link
Copy link
Open
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:
underreact/lib/webpack-config/loaders-list.js
Lines 45 to 56 in 4c531a9
| 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' | |
| } | |
| } | |
| }; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels