import type * as d from '../../declarations' ; import { normalizeFsPath } from '@utils' ; import type { Plugin } from 'rollup' ; export const fileLoadPlugin = ( fs ) : Plugin => { return { name : 'fileLoadPlugin' , load ( id ) { const fsFilePath = normalizeFsPath ( id ) ; if ( id . endsWith ( '.d.ts' ) ) { return '' ; } return fs . readFile ( fsFilePath ) ; } , } ; } ;