From 89f2e91f9e64cb452409104691661529daabfd2b Mon Sep 17 00:00:00 2001 From: yuntian001 Date: Thu, 5 Jan 2023 15:17:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=98=E9=87=8F=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/autoImport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }