You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// vite.config.jsAutoImport({// targets to transforminclude: [/\.[tj]sx?$/,// .ts, .tsx, .js, .jsx/\.vue$/,/\.vue\?vue/,// .vue],// global imports to register/* 自动导入vue、vue-router、pinia等API */imports: [// presets'vue','vue-router','pinia',],// Auto import for all module exports under directoriesdirs: ['src/services/api',// './hooks',// './composables'// ...],// Filepath to generate corresponding .d.ts file.// Defaults to './auto-imports.d.ts' when `typescript` is installed locally.// Set `false` to disable.dts: 'types/auto-imports.d.ts',// Auto import inside Vue template// see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72vueTemplate: false,}),// src/services/api/common.tsexportconstenumCommonApi{PREMISSION_QUERY='/xxx/permission/query',}// 我被注释了💥// export const commented = 'commented'// auto-imports.d.ts// Generated by 'unplugin-auto-import'export{}declareglobal{
...
// 注释的也自动生成了(这似乎不是问题)constcommented: typeofimport('../src/services/api/common')['commented']...// enum的生成错误💥constenum: typeofimport('../src/services/api/common')['enum']...}
Describe the bug
Reproduction
参照描述
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: