Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 815 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 815 Bytes

@saykit/transform-jsx

JSX and TSX transformer for SayKit.

Coverage

Extracts and rewrites the <Say> macro (and its <Say.Plural>, <Say.Ordinal>, <Say.Select> sub-components) in .jsx and .tsx files. Used inside a saykit.config.ts bucket alongside @saykit/transform-js.

Install

pnpm add -D @saykit/transform-jsx

Usage

import js from '@saykit/transform-js';
import jsx from '@saykit/transform-jsx';

// inside a bucket:
transformer: [js(), jsx()],

Documentation

See saykit.js.org.