We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 93ba6b9 commit 179fc05Copy full SHA for 179fc05
packages/ref-transform/src/refTransform.ts
@@ -24,7 +24,7 @@ import { hasOwn, isArray, isString } from '@vue/shared'
24
25
const TO_VAR_SYMBOL = '$'
26
const TO_REF_SYMBOL = '$$'
27
-const shorthands = ['ref', 'computed', 'shallowRef']
+const shorthands = ['ref', 'computed', 'shallowRef', 'toRef', 'customRef']
28
const transformCheckRE = /[^\w]\$(?:\$|ref|computed|shallowRef)?\s*(\(|\<)/
29
30
export function shouldTransform(src: string): boolean {
0 commit comments