import ChildComp from './Child.vue'
import SomeOtherComp from './Other.vue'
- import myDir from './my-dir'
+ import vMyDir from './my-dir'
export default {
setup(__props) {
return (_ctx, _cache) => {
return (_openBlock(), _createBlock(_Fragment, null, [
_withDirectives(_createVNode(\\"div\\", null, null, 512 /* NEED_PATCH */), [
- [_unref(myDir)]
+ [_unref(vMyDir)]
]),
_createVNode(ChildComp),
_createVNode(SomeOtherComp)
<script setup>
import ChildComp from './Child.vue'
import SomeOtherComp from './Other.vue'
- import myDir from './my-dir'
+ import vMyDir from './my-dir'
</script>
<template>
<div v-my-dir></div>
`,
{ inlineTemplate: true }
)
- expect(content).toMatch('[_unref(myDir)]')
+ expect(content).toMatch('[_unref(vMyDir)]')
expect(content).toMatch('_createVNode(ChildComp)')
// kebab-case component support
expect(content).toMatch('_createVNode(SomeOtherComp)')