new URL() assets tests
Assets can be referenced inline with the standard new URL('./path', import.meta.url) syntax.
It should return the asset URL, including on the server (SSR): the IdealImage and SVGR plugins must not transform those assets.
JSXโ
- Small image (inlined as data URL):
- Large image (emitted as file):

- Large image with the
@sitealias:
- SVG image (not transformed into a React component):
- PDF file link
MDXโ
- Small image:
- Large image:

- Large image with the
@sitealias:
- SVG image:
-
PDF file link