Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 590 Bytes

File metadata and controls

43 lines (30 loc) · 590 Bytes

Installation

Prerequisites

  • Node.js 24.15+
  • npm 10+

Install package

npm install @askrjs/askr

Configure TypeScript JSX

Use Askr's JSX runtime in tsconfig.json:

{
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "@askrjs/askr"
  }
}

Configure Vite (optional)

If you use Vite, add the Askr plugin:

import { defineConfig } from 'vite';
import { askr } from '@askrjs/vite';

export default defineConfig({
  plugins: [askr()],
});

Next