Svelte
Use @golar/svelte to add Svelte support to Golar.
Install the Plugin
Section titled “Install the Plugin”Make sure svelte is installed in your project.
Then install the Golar plugin:
npm i -D @golar/sveltepnpm add -D @golar/svelteyarn add -D @golar/svelteRegister the Plugin
Section titled “Register the Plugin”Add the plugin import to golar.config.ts:
import { defineConfig } from 'golar/unstable'import '@golar/svelte'
export default defineConfig({})Run Golar
Section titled “Run Golar”Once the plugin is registered, run Golar in the default mode:
npx golarpnpm golaryarn golarThis command loads golar.config.ts, runs linting, and then type-checks your project files.
Official Tooling Used
Section titled “Official Tooling Used”Golar’s Svelte support is built on the official svelte2tsx package.