Skip to content

Commit

Permalink
💚 fix build-error caused by ts check (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongshun authored May 27, 2022
1 parent e7555af commit bbae701
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ async function validateSingularMode<T extends ObjectType>(
return typeof validate === 'function' ? validate(app) : !!validate;
}

// @ts-ignore
const supportShadowDOM = document.head.attachShadow || document.head.createShadowRoot;
const supportShadowDOM = !!document.head.attachShadow || !!(document.head as any).createShadowRoot;

function createElement(
appContent: string,
Expand Down

1 comment on commit bbae701

@vercel
Copy link

@vercel vercel bot commented on bbae701 May 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.