import type { CustomPluginOptions, ResolvedId, ResolveIdResult } from 'rollup' interface IRollupPluginResolveIdOptions { assertions?: Record custom?: CustomPluginOptions isEntry?: boolean skipSelf?: boolean } export type TRollupResolveMethod = ( source: string, importer?: string, options?: IRollupPluginResolveIdOptions ) => Promise export interface ILoaderMeta { importFrameworkStatement: string importFrameworkName: string creator: string creatorLocation: string extraImportForWeb: string execBeforeCreateWebApp: string frameworkArgs: string isNeedRawLoader?: boolean mockAppStatement: string modifyConfig?: (config: Record, source: string) => void modifyResolveId?: (res: { source?: string importer?: string options?: IRollupPluginResolveIdOptions name?: string resolve: TRollupResolveMethod }) => Promise | ResolveIdResult }