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

Future improvements: github.com/11ty/elevent...

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