Skip to content

Commit

Permalink
chore: do not use defineFontProvider in repo
Browse files Browse the repository at this point in the history
This reverts commit b7bff82.
This reverts commit 191fea7.
  • Loading branch information
danielroe committed Mar 10, 2024
1 parent 191fea7 commit bc11360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
run: pnpm playwright-core install chromium

- run: pnpm dev:prepare
- run: pnpm test:types
- run: pnpm lint
- run: pnpm test -- --coverage
- run: pnpm build
Expand Down
6 changes: 3 additions & 3 deletions playground/providers/custom.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineFontProvider } from '@nuxt/fonts/utils'
import type { FontProvider } from '@nuxt/fonts'

const resolvableFonts = new Set<string>()
export default defineFontProvider({
export default {
async setup () {
// Do some stuff
resolvableFonts.add('SomeFontFromCustomProvider')
Expand All @@ -14,5 +14,5 @@ export default defineFontProvider({
}
}
},
})
} satisfies FontProvider

0 comments on commit bc11360

Please sign in to comment.