import type { Plugin } from "rollup" ; export default function alias ( aliases ) { return { name : "alias" , resolveId ( source ) { const alias = aliases [ source ] ; if ( alias ) return alias ; } } ; }