svelte-component-parser Svelte Themes

Svelte Component Parser

Parser extracted from the Svelte compiler for use in preprocessors.

DEPRECATED

Use the parse function exposed in svelte/compiler instead.


Extracted parser class and method from the svelte compiler for use in preprocessors.

Usage

import parse from 'svelte-template-parser'

const ast = parse(template, options as ParserOptions)

Top categories

Loading Svelte Themes