UNPKG

hot-hook

Version:

Easy hot module reloading (HMR) for Node.js and ESM

13 lines (12 loc) 489 B
/** * This class is responsible for checking if a given specifier * is imported dynamically from a given parent file. * Otherwise we will throw an error since we cannot make the file reloadable * * We are caching the results to avoid reading the same file multiple times */ export declare class DynamicImportChecker { private cache; ensureFileIsImportedDynamicallyFromParent(parentPath: string, specifier: string): Promise<boolean>; invalidateCache(key: string): void; }