v10.0.0
Breaking Changes
vue-template-compiler
is now a peer dependency instead of a direct dependency. This allows the user to pinvue-template-compiler
to a specific version instead of relying on the implicit upgrades from a semver caret range.templateBuble
option is merged with thebuble
option. This means the template expressions will be using the same Buble configuration withbuble-loader
(if present).
New
All Buble base transforms are now enabled by default for template expression, including arrow functions and parameter destructuring (Note: the following examples all require Vue core ^2.1.0):
<!-- arrow functions in v-on handlers -->
<button @click="e => log(e)"></button>
<!-- destructuring in v-for -->
<li v-for="{ id, text } in items">
{{ id }} {{ text }}
</li>
<!-- destructuring in scoped slots -->
<my-component>
<template scope="{ id, text }">
<span>{{ id }} {{ text }}</span>
</template>
</my-component>