Skip to content

Commit

Permalink
fix: respect custom defaults via families
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 22, 2024
1 parent 3e67278 commit d2c9ac1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ export default defineNuxtModule<ModuleOptions>({

// Respect custom weights, styles and subsets options
const defaults = { ...normalizedDefaults, fallbacks }
for (const key of ['weights', 'styles', 'subsets'] as const) {
if (override?.[key]) {
defaults[key as 'weights'] = override[key]!
}
}

// Handle explicit provider
if (override?.provider) {
Expand Down

0 comments on commit d2c9ac1

Please sign in to comment.