Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored and dsvgit committed Jan 27, 2024
1 parent 1181707 commit 3f54b4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/swc/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export async function globSources(

const files = await Promise.all(
sources
.filter(source => includeDotfiles || !basename(source).startsWith("."))
.filter(
source =>
includeDotfiles || source === "." || !basename(source).startsWith(".")
)
.map(source => {
return new Promise<string[]>(resolve => {
stat(source, (err, stat) => {
Expand Down

0 comments on commit 3f54b4f

Please sign in to comment.