# iris-sfc

Iris SFC/TS instant transpilation layer: swc TS-to-JS, Vue SFC compiler, style injection.

## API Overview

- **`VueSFCCompiler`** — Parse `.vue` single-file components into template, script, and style blocks.
- **`VueComponentLoader`** — Load and resolve Vue SFC files, including child component expansion.
- **`compile_vue`** — Top-level function to compile a Vue SFC source string into a `CompiledVueSFC`.
- **`ts_transpiler`** — TypeScript-to-JavaScript instant transpilation via swc.

## Usage

```rust
use iris_sfc::compile_vue;

let sfc = compile_vue(r#"
<template><div>{{ msg }}</div></template>
<script setup>
const msg = "Hello Iris"
</script>"#).unwrap();
```

## Links

- Repository: <https://github.com/itszzl-sudo/iris>
- crates.io: <https://crates.io/crates/iris-sfc>
- docs.rs: <https://docs.rs/iris-sfc>