vue-template-compiler
Advanced tools
Changelog
2.7.0-alpha.8 (2022-06-14)
<script setup>
support. Requires vue-loader@^15.10.0-beta.1
.
defineXXX
macros not supported yetChangelog
2.7.0-alpha.6 (2022-06-09)
@vue/runtime-dom
for component props validation in templates.Changelog
2.7.0-alpha.4 (2022-06-01)
defineComponent
206f8a7fChangelog
2.7.0-alpha.1 (2022-05-31)
This release includes full Composition API support, including:
setup()
support in componentsref()
, reactive()
etc.)onMounted()
etc.)provide()
and inject()
useSlots()
and useAttrs()
setup()
reactive()
, ref()
, and shallowReactive()
will directly convert original objects instead of creating proxies. They also do not convert properties with symbol keys.reactive()
because without property access the array's mutation won't be tracked (this will result in a warning).readonly()
does create a separate object, but it won't track newly added properties and does not work on arrays.In ESM builds, these APIs are provided as named exports (and named exports only):
import Vue, { ref } from 'vue'
Vue.ref // undefined, use named export instead
When bundling with CJS builds externalized, bundlers should be able to handle ESM interop when externalizing CJS builds.
In UMD builds, these APIs are exposed on the global Vue
object.
In addition:
h()
, set()
, del()
and nextTick()
are now also provided as named exports in ESM builds.