Skip to content

Commit 1253f4d

Browse files
authored
fix: bug in fontsource.ts when style is normal (#52)
1 parent 941d019 commit 1253f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loaders/fontsource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function fontsourceVirtualModule(options?: FontsourceFonts) {
2929
if (family.styles) {
3030
for (const style of family.styles) {
3131
if (style === 'normal')
32-
source.push(`@import "@fontsource/${name}/${subsetPrefix}${style}.css";`)
32+
source.push(`@import "@fontsource/${name}/${subsetPrefix}${weight}.css";`)
3333
else
3434
source.push(`@import "@fontsource/${name}/${subsetPrefix}${weight}-${style}.css";`)
3535
}

0 commit comments

Comments
 (0)