What's new
compile_sfc/2
:filename option — pass the SFC filename for stable scoped CSS data-v-xxxx attributes and source maps
:scope_id option — explicit scope ID override for scoped CSS
- Content hashes —
template_hash, style_hash, script_hash returned in the result for HMR change detection
{:ok, result} = Vize.compile_sfc(source, filename: "App.vue")
result.template_hash # "de5ddf78a0f8d31a"
result.style_hash # "3efafd39ec9747f9"
result.script_hash # "1a8dae0fef50c189"
Vapor IR
- v-for
:key attribute — key_prop now encoded in the IR for v-for nodes