import type { PartialResolvedId , Plugin } from 'rollup' ; param moduleId param relativePath returns export function relativePathPlugin ( moduleId , relativePath ) { return { name : 'relativePathPlugin' , param id returns resolveId ( id ) { if ( id === moduleId ) { return { id : relativePath , external : true , } ; } return null ; } , } ; }