Skip to content

Commit

Permalink
Really hack around React export
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Dec 4, 2023
1 parent c63d190 commit fd2631f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/react.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as ReactOriginal from 'react'
import type * as ReactNamespace from 'react'

export const React = (
'default' in ReactOriginal ? ReactOriginal['default'] : ReactOriginal
) as typeof ReactNamespace
export const React: typeof ReactNamespace =
// prettier-ignore
// @ts-ignore
'default' in ReactOriginal ? ReactOriginal['default'] : ReactOriginal as any

0 comments on commit fd2631f

Please sign in to comment.