Skip to content

Commit

Permalink
Revert "See if Bundling approach fixes NextVisual image import"
Browse files Browse the repository at this point in the history
This reverts commit 099ff54.
  • Loading branch information
weotch committed Sep 30, 2024
1 parent f0f3085 commit 239308a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/next/src/NextVisual.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Image from "next/image";
// `next/image` as importing as { default: Image, __esmodule: true } when
// this file was loaded by @react-visual/sanity-next. This is my hack to fix
import _Image from "next/image";
const Image = ("default" in _Image ? _Image.default : _Image) as typeof _Image;

import type { ReactElement } from 'react'

Expand Down

0 comments on commit 239308a

Please sign in to comment.