Skip to content

Commit 833e54f

Browse files
Merge pull request #44 from k35o/fix-include-queried-css-files-only
Fix JSON.parse error in vitePluginNextFont
2 parents c92ebe7 + 98f3c74 commit 833e54f

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)