Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 16, 2023
1 parent dc0f03d commit ff87851
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 ff87851

Please sign in to comment.