import type { Plugin } from 'rollup' ; export const loaderPlugin = ( entries = { } ) : Plugin => { return { name : 'stencilLoaderPlugin' , resolveId ( id ) { if ( id in entries ) { return { id , } ; } return null ; } , load ( id ) { if ( id in entries ) { return entries [ id ] ; } return null ; } , } ; } ;