refactor: remove deprecated reactivity transform (#487)

This commit is contained in:
Khamzat authored and GitHub committed 2023-04-18 18:40:47 +02:00
1 parent 99c52ed4e5
commit cc7f7fe146
4 files changed
+2 -7

No files matched your search

-2
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) - 🔥 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 - 📥 [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) - 🖨 Static-site generation (SSG) via [vite-ssg](https://github.com/antfu/vite-ssg)
-2
View File
@@ -45,8 +45,6 @@
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227) - 🔥 使用 [新的 `<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 无需引入 - 📥 [API 自动加载](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 无需引入
- 🖨 使用 [vite-ssg](https://github.com/antfu/vite-ssg) 进行服务端生成 (SSG) - 🖨 使用 [vite-ssg](https://github.com/antfu/vite-ssg) 进行服务端生成 (SSG)
+2 -2
View File
@@ -3,11 +3,11 @@ defineOptions({
name: 'IndexPage', name: 'IndexPage',
}) })
const user = useUserStore() const user = useUserStore()
const name = $ref(user.savedName) const name = ref(user.savedName)
const router = useRouter() const router = useRouter()
function go() { function go() {
if (name) if (name.value)
router.push(`/hi/${encodeURIComponent(name)}`) router.push(`/hi/${encodeURIComponent(name)}`)
} }
-1
View File
@@ -29,7 +29,6 @@ export default defineConfig({
plugins: { plugins: {
vue: Vue({ vue: Vue({
include: [/\.vue$/, /\.md$/], include: [/\.vue$/, /\.md$/],
reactivityTransform: true,
}), }),
}, },
}), }),