Skip to content

Commit

Permalink
fix: 变量错误修复
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jan 5, 2023
1 parent 64fed28 commit 89f2e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/autoImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 89f2e91

Please sign in to comment.