From: Evan You Date: Mon, 23 Aug 2021 20:00:46 +0000 (-0400) Subject: feat(experimental): support ref transform for sfc normal ``) + expect(content).not.toMatch(`$ref(0)`) + expect(content).toMatch(`import { ref as _ref } from 'vue'`) + expect(content).toMatch(`let count = _ref(0)`) + expect(content).toMatch(`count.value++`) + expect(content).toMatch(`return ({ count })`) + assertCode(content) + }) + + test('usage with normal + `) + // should dedupe helper imports + expect(content).toMatch(`import { ref as _ref } from 'vue'`) + + expect(content).toMatch(`let a = _ref(0)`) + expect(content).toMatch(`let b = _ref(0)`) + + // root level ref binding declared in