Skip to content

Commit ae2bf8f

Browse files
committed
feat(helper): update consistent names
1 parent 8d74e59 commit ae2bf8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/field-plugin/helpers/vite/src/plugins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ function printSandboxUrl(server: ViteDevServer) {
8282

8383
export const plugins = [printProd(), printDev(), watchConfigFile()]
8484

85-
function getFileName(filePath: string) {
86-
return path.basename(filePath)
85+
function getFileName(file: string) {
86+
return path.basename(file)
8787
}
8888

89-
function isFileInSameLevel(fileName: string): boolean {
89+
function isFileInSameLevel(file: string): boolean {
9090
const currentDir = process.cwd()
91-
const filePath = path.resolve(currentDir, fileName)
91+
const filePath = path.resolve(currentDir, file)
9292
const fileDir = path.dirname(filePath)
9393
return currentDir === fileDir
9494
}

0 commit comments

Comments
 (0)