Skip to content

Commit 28bb440

Browse files
committed
Patch vite config parser
1 parent 0dbb0e5 commit 28bb440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/readPublicDirPath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function readPublicDirPath(params: { projectDirPath: string }): Pro
3434
if (
3535
!viteConfig
3636
.split(/\r?\n/)
37-
.filter(line => !line.startsWith("//"))
37+
.filter(line => !line.trim().startsWith("//"))
3838
.join("\n")
3939
.includes("publicDir")
4040
) {

0 commit comments

Comments
 (0)