Skip to content

Commit

Permalink
fix: lazy import broken in parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 12, 2022
1 parent 2773308 commit 74b839b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/preview/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {lazy} from 'react'

import {PreviewMode} from './PreviewMode'

export default PreviewMode
Expand All @@ -10,4 +8,7 @@ export * from './useAuthenticated'
export * from './useGroqStore'
export * from './useSyncGroqStore'

export const PreviewSubscriptionWithToken = lazy(() => import('./PreviewSubscriptionWithToken'))
// eslint-disable-next-line no-warning-comments
// @TODO revisit once Parcel handles dynamic imports properly
//export const PreviewSubscriptionWithToken = lazy(() => import('./PreviewSubscriptionWithToken'))
export {PreviewSubscriptionWithToken} from './PreviewSubscriptionWithToken'

0 comments on commit 74b839b

Please sign in to comment.