We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d74e59 commit ae2bf8fCopy full SHA for ae2bf8f
packages/field-plugin/helpers/vite/src/plugins.ts
@@ -82,13 +82,13 @@ function printSandboxUrl(server: ViteDevServer) {
82
83
export const plugins = [printProd(), printDev(), watchConfigFile()]
84
85
-function getFileName(filePath: string) {
86
- return path.basename(filePath)
+function getFileName(file: string) {
+ return path.basename(file)
87
}
88
89
-function isFileInSameLevel(fileName: string): boolean {
+function isFileInSameLevel(file: string): boolean {
90
const currentDir = process.cwd()
91
- const filePath = path.resolve(currentDir, fileName)
+ const filePath = path.resolve(currentDir, file)
92
const fileDir = path.dirname(filePath)
93
return currentDir === fileDir
94
0 commit comments