diff --git a/plugins/autoImport.ts b/plugins/autoImport.ts index e238740d..d57a82f3 100644 --- a/plugins/autoImport.ts +++ b/plugins/autoImport.ts @@ -4,7 +4,7 @@ import { createPlugin } from 'vite-plugin-autogeneration-import-file'; import { fileURLToPath } from 'url'; const { autoImport, resolver: resolverFn } = createPlugin(); const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(filename); +const __dirname = dirname(__filename); function pathResolve(dir: string) { return resolve(__dirname, '../', dir); }