Skip to content

buildCompileSvelte

Compiles the Svelte code.

The project’s Svelte files are found by globbing the Svelte extensions directly. Globbing the tsconfig include patterns and filtering that list would never match: include lists TypeScript globs (./src/**\/*.ts, …), so no .svelte path can ever appear in it and the check would always be skipped.

Import:

import { buildCompileSvelte } from 'obsidian-dev-utils/script-utils/build';

Signature:

function buildCompileSvelte(): Promise<void>

Returns: Promise<void> — A Promise that resolves when the code compiles successfully.