Skip to content

Commit 407e58b

Browse files
authored
fix: prevent processing font files (#906)
1 parent 8099869 commit 407e58b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/createFileTransform.ts

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export function createFileTransform(name: string) {
6464
'.svg',
6565
'.jar',
6666
'.keystore',
67+
68+
// Font files
69+
'.otf',
70+
'.ttf',
6771
].includes(path.extname(entry.path)) &&
6872
name
6973
) {

0 commit comments

Comments
 (0)