Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
fix: should not load txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Sep 14, 2023
1 parent 2897a2d commit 0942051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function transformer(
module: Module,
filePath: string,
) {
const shouldTransformFile = transformExtensions.some((ext) => filePath.endsWith(ext));
const shouldTransformFile = transformExtensions.some(extension => filePath.endsWith(extension));
if (!shouldTransformFile) {
return defaultLoader(module, filePath);
}
Expand Down

0 comments on commit 0942051

Please sign in to comment.