vize_atelier_sfc 0.26.0

Atelier SFC - The Single File Component workshop for Vize
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Function mode script compilation.
//!
//! This module handles compilation of script setup in function mode,
//! where the setup function returns bindings for use by a separate render function.
//! The compilation is split into:
//! - `compiler`: the main `compile_script_setup` entry point
//! - `helpers`: utility functions (backtick counting, TS detection, reserved words, top-level await)
//! - `imports`: import deduplication logic

mod compiler;
pub(crate) mod helpers;
pub(crate) mod imports;

pub use compiler::compile_script_setup;
pub use helpers::contains_top_level_await;
pub use imports::dedupe_imports;