Skip to content

Commit bee8fbf

Browse files
authored
Merge branch 'canary' into next-swc-publish-flow
2 parents f78e9b9 + 12eb812 commit bee8fbf

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/next/client/image.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ type OnLoadingComplete = (result: {
5757

5858
type ImgElementStyle = NonNullable<JSX.IntrinsicElements['img']['style']>
5959

60-
interface StaticImageData {
61-
src: string
62-
height: number
63-
width: number
64-
blurDataURL?: string
65-
}
66-
6760
interface StaticRequire {
6861
default: StaticImageData
6962
}
@@ -607,6 +600,7 @@ export default function Image({
607600
loader,
608601
})}
609602
decoding="async"
603+
data-nimg
610604
style={imgStyle}
611605
className={className}
612606
/>
@@ -616,6 +610,7 @@ export default function Image({
616610
{...rest}
617611
{...imgAttributes}
618612
decoding="async"
613+
data-nimg
619614
className={className}
620615
ref={(img) => {
621616
setRef(img)
@@ -640,9 +635,9 @@ export default function Image({
640635
rel="preload"
641636
as="image"
642637
href={imgAttributes.srcSet ? undefined : imgAttributes.src}
643-
// @ts-ignore: imagesrcset is not yet in the link element type
638+
// @ts-ignore: imagesrcset is not yet in the link element type.
644639
imagesrcset={imgAttributes.srcSet}
645-
// @ts-ignore: imagesizes is not yet in the link element type
640+
// @ts-ignore: imagesizes is not yet in the link element type.
646641
imagesizes={imgAttributes.sizes}
647642
></link>
648643
</Head>

0 commit comments

Comments
 (0)