This crate is used for generating the final Module code of the SFC.
The main structure of this crate is [CodegenContext]. Here's how you can use it to generate the module from an SFC:
// Parse
let = parse_sfc.unwrap;
// Find template block
let mut template_block = sfc.template;
let Some = template_block else ;
// Do the necessary transformations
let mut scope_helper = default;
let module = transform_and_record_scripts;
transform_and_record_template;
// Create the context and generate the template block
let mut ctx = default;
let template_expr = ctx.generate_sfc_template;
// Generate the module code
let sfc_module = ctx.generate_module;
// (Optional) Stringify the code
let compiled_code = stringify;