UNPKG

@himorishige/noren-dict-reloader

Version:

Dynamic dictionary and policy hot-reloading for Noren using ETag-based updates

15 lines (14 loc) 490 B
import type { LoaderFn } from './hotreload.js'; /** * Create a LoaderFn that supports file:// URLs in Node.js. * Non-file schemes are delegated to the provided fallback (default: HTTP loader). */ export declare function createFileLoader(fallback?: LoaderFn, opts?: { baseDir?: string; maxBytes?: number; allowRemoteFileHosts?: string[]; }): LoaderFn; /** * A ready-to-use loader that handles file:// and falls back to HTTP(S). */ export declare const fileLoader: LoaderFn;