import.meta.resolve can make it easier to passthrough copy assets from node_modules.

Future improvements: https://github.com/11ty/eleventy/issues/3885

import { pathToFileURL } from "node:url"; eleventyConfig.addPassthroughCopy({ pathToFileURL(import.meta.resolve("@11ty/logo/assets/logo-bg.svg")): "img/logo-github.svg", // … });