Skip to content

Commit

Permalink
fix(headless-ui): fix prefix option not found bug (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Jan 27, 2022
1 parent 5b57ea7 commit 01c16d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/resolvers/headless-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ export interface HeadlessUiResolverOptions {
*
* @link https://github.com/tailwindlabs/headlessui
*/
export function HeadlessUiResolver({
prefix = '',
}: HeadlessUiResolverOptions): ComponentResolver {
export function HeadlessUiResolver(options: HeadlessUiResolverOptions = {}): ComponentResolver {
const { prefix = '' } = options
return {
type: 'component',
resolve: (name: string) => {
Expand Down

0 comments on commit 01c16d4

Please sign in to comment.