1 Star 3 Fork 0

林岑影/vite-uniapp-vue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.macros.ts 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
林岑影 提交于 2024-12-06 14:46 +08:00 . chore: update deps & eslint配置文件改成ts
import type { PluginOption } from 'vite'
import DefinePropsRefs from '@vue-macros/define-props-refs/vite'
import DefineProps from '@vue-macros/define-props/vite'
import ReactivityTransform from '@vue-macros/reactivity-transform/vite'
import DefineOptions from 'unplugin-vue-define-options/vite'
export default (): PluginOption[] => ([
/**
* defineOptions
* @description 可以通过 defineOptions 宏在 <script setup> 中使用选项式 API
* @see https://vue-macros.sxzz.moe/zh-CN/macros/define-options.html
*/
DefineOptions(),
/**
* Reactivity Transform
* @description 响应性语法糖
* @see https://vue-macros.sxzz.moe/zh-CN/features/reactivity-transform.html
*/
ReactivityTransform(),
/**
* defineProps
* @description 使用 $defineProps 可以正确地解构 props 的类型
* @see https://vue-macros.sxzz.moe/zh-CN/macros/define-props.html
*/
DefineProps(),
/**
* definePropsRefs
* @description 从 defineProps 中将返回 refs 而不是 reactive 对象,可以在不丢失响应式的情况下解构 props
* @see https://vue-macros.sxzz.moe/zh-CN/macros/define-props-refs.html
*/
DefinePropsRefs(),
])
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/lincenying/vite-uniapp-vue3.git
git@gitee.com:lincenying/vite-uniapp-vue3.git
lincenying
vite-uniapp-vue3
vite-uniapp-vue3
master

搜索帮助