refactor: remove deprecated reactivity transform (#487)

This commit is contained in:
Khamzat 2023-04-18 19:40:47 +03:00 committed by GitHub
parent 99c52ed4e5
commit cc7f7fe146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 7 deletions

View File

@ -48,8 +48,6 @@ Mocking up web app with <b>Vitesse</b><sup><em>(speed)</em></sup><br>
- 🔥 Use the [new `<script setup>` syntax](https://github.com/vuejs/rfcs/pull/227)
- 🤙🏻 [Reactivity Transform](https://vuejs.org/guide/extras/reactivity-transform.html) enabled
- 📥 [APIs auto importing](https://github.com/antfu/unplugin-auto-import) - use Composition API and others directly
- 🖨 Static-site generation (SSG) via [vite-ssg](https://github.com/antfu/vite-ssg)

View File

@ -45,8 +45,6 @@
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227)
- 🤙🏻 默认开启 [响应性语法糖](https://vuejs.org/guide/extras/reactivity-transform.html)
- 📥 [API 自动加载](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 无需引入
- 🖨 使用 [vite-ssg](https://github.com/antfu/vite-ssg) 进行服务端生成 (SSG)

View File

@ -3,11 +3,11 @@ defineOptions({
name: 'IndexPage',
})
const user = useUserStore()
const name = $ref(user.savedName)
const name = ref(user.savedName)
const router = useRouter()
function go() {
if (name)
if (name.value)
router.push(`/hi/${encodeURIComponent(name)}`)
}

View File

@ -29,7 +29,6 @@ export default defineConfig({
plugins: {
vue: Vue({
include: [/\.vue$/, /\.md$/],
reactivityTransform: true,
}),
},
}),