Skip to content

Commit 98f3c74

Browse files
committed
Fix regex pattern to correctly match query parameters in target.css
1 parent 03601c8 commit 98f3c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/next-font/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type FontOptions = {
2828
source: string;
2929
};
3030

31-
const includePattern = /next(\\|\/|\\\\).*(\\|\/|\\\\)target\.css.*$/;
31+
const includePattern = /next(\\|\/|\\\\).*(\\|\/|\\\\)target\.css\?.*$/;
3232

3333
const virtualModuleId = "virtual:next-font";
3434

0 commit comments

Comments
 (0)