Skip to content

Vue

Use @golar/vue to add Vue support to Golar.

Make sure vue is installed in your project.

Then install the Golar plugin:

Terminal window
npm i -D @golar/vue

Add the plugin import to golar.config.ts:

golar.config.ts
import { defineConfig } from 'golar/unstable'
import '@golar/vue'
export default defineConfig({})

Once the plugin is registered, run Golar in the default mode:

Terminal window
npx golar

This command loads golar.config.ts, runs linting, and then type-checks your project files.

If you need declaration emit for Vue files, use tsc mode:

Terminal window
npx golar tsc --declaration --emitDeclarationOnly

This emits .vue.d.ts files for Vue components.

Golar’s Vue support is built on the official @vue/language-core package.