svelte-compiler 0.1.0

Core compiler API for the Rust Svelte toolchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::api::CompileOptions;
use crate::ast::modern::Root;
use crate::error::CompileError;

pub(crate) fn validate(
    source: &str,
    options: &CompileOptions,
    root: &Root,
) -> Option<CompileError> {
    crate::api::validation::validate_component_template(source, options, root)
}