Skip to content

v0.3.0

Choose a tag to compare

@dannote dannote released this 12 Mar 04:43
· 29 commits to main since this release

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 hashestemplate_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 attributekey_prop now encoded in the IR for v-for nodes