Skip to content

Commit

Permalink
style: ignore devtools import
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnowack committed Jan 10, 2025
1 parent b19b6ff commit e05184b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/base/core/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ async function checkDevtoolsAvailability(): Promise<boolean> {

// 2. If we are in a pure ESM environment, try dynamic import
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
await import('@signaldb/devtools')
return true
} catch (error) {
Expand Down Expand Up @@ -120,6 +122,8 @@ async function checkAndImportDevtools(): Promise<boolean> {

// 2. Dynamic import in ESM
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
await import('@signaldb/devtools')
return true
} catch (error) {
Expand Down

0 comments on commit e05184b

Please sign in to comment.