fix(reactivity-transform): apply transform for labelled variable declarations

ref https://github.com/vuejs/core/issues/5298#issuecomment-1017970061
This commit is contained in:
Evan You
2022-01-21 07:48:41 +08:00
parent a81a9922bb
commit a05b000948
3 changed files with 15 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ exports[`$ unwrapping 1`] = `
}))
let c = () => {}
let d
label: var e = (ref())
"
`;
@@ -34,12 +35,13 @@ exports[`$ref & $shallowRef declarations 1`] = `
"import { ref as _ref, shallowRef as _shallowRef } from 'vue'
let foo = _ref()
let a = _ref(1)
export let a = _ref(1)
let b = _shallowRef({
count: 0
})
let c = () => {}
let d
label: var e = _ref()
"
`;