Skip to content

Commit

Permalink
See if Bundling approach fixes NextVisual image import
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Sep 30, 2024
1 parent e5e76e5 commit 099ff54
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/next/src/NextVisual.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// `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 Image from "next/image";

import type { ReactElement } from 'react'

Expand Down

0 comments on commit 099ff54

Please sign in to comment.