Skip to content

Commit

Permalink
docs: update jsx config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusheng committed Jan 10, 2024
1 parent 1e3a666 commit 3fba8bf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ Runtime Typescript and ESM support for Node.js

- Seamless typescript and ESM syntax support
- Seamless interoperability between ESM and CommonJS
- `jsx` support with simple configuration
- `jsx` support with simple configuration (transformOptions.jsx = true | {
pragma?: string;
pragmaFrag?: string;
throwIfNamespace?: boolean;
runtime?: "classic" | "automatic";
})
- Synchronous API to replace `require`
- Super slim and zero dependency
- Smart syntax detection to avoid extra transforms
Expand Down Expand Up @@ -119,7 +124,13 @@ Custom alias map used to resolve ids.

### `jsx`

- Type: Boolean
- Type: Boolean | {
pragma?: string;
pragmaFrag?: string;
throwIfNamespace?: boolean;
runtime?: "classic" | "automatic";
}

- Default: `false`
- Environment Variable: `JITI_JSX`

Expand Down

0 comments on commit 3fba8bf

Please sign in to comment.