render: image preload links with imagesrcset or imagesizes survive stripping when as=image is omitted

Author: TyagiquamarCreated Sep 23, 2026Updated Sep 23, 2026

React 19 can emit image preload hints that carry imagesrcset/imagesizes without an as=image attribute, e.g.:

stripImagePreloadLinks in packages/render/src/shared/utils/strip-image-preload-links.ts (verified on canary) only removes preloads with as=image, so these tags survive into the rendered email HTML even though email clients ignore link rel=preload.

Expected: preload links carrying imagesrcset or imagesizes are image preloads and should be stripped just like as=image ones. Non-image preloads (e.g. as=style, as=font) and other link tags must be kept.