Project setup
- Node & package manager: use Node 22+. Use your preferred package manager (pnpm, npm, or yarn) consistently.
- TypeScript JSX: set
"jsx": "react-jsx"and"jsxImportSource": "ignite-element/jsx"; add the pragma per-file if you cannot changetsconfig. - Bundler plugin: add
igniteConfigVitePlugin()(Vite) orIgniteConfigWebpackPlugin(Webpack) soignite.config.tsis loaded automatically. - Testing: add a test runner (Vitest or Jest) and include a smoke test for each web component (mount + basic interaction). Run with your package manager (
npm test,pnpm test, etc.). - Linting/formatting: use your preferred stack (ESLint/Prettier, Biome, etc.) and run it via your package manager. The published package doesn’t impose a formatter.
Follow Installation for the full step-by-step setup and jump to Your first component to ship a working toggle.