简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
vite导入文件,Property ‘globEager‘ does not exist on type ‘ImportMeta‘
最近在弄vue2到vue3的迁移,导入路由原先使用的require.context,现在改用推荐的vite工具const files = import.meta.globEager('./module/*.ts')直接这么写会报标题错误需要在tsconfig.json中进行配置{"compilerOptions": {"types": ["vite/client"]}}增加以上配置...
到底了