next.js
df3c1b82 - Turbopack next/font/google: don't insert css rules for multiple weights or styles (#55852)

Commit
2 years ago
Turbopack next/font/google: don't insert css rules for multiple weights or styles (#55852) If multiple weights or styles are requested, e.g. `Open_Sans({ weight: ['300', '400']})` or `Open_Sans({ style: ['normal', 'italic']})`, don't insert css rules for those properties. Prior behavior was to insert the first ('300' or 'normal' in the above cases), which did not match webpack's behavior. Closes WEB-1645
Author
Parents
Loading