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

support usage with typescript #113

@samanpwbb

Description

@samanpwbb

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'
}
}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions