Detects incomplete Fetch API support (e.g., Chrome <46, Firefox <39 where response text encoding is broken) and disables native fetch, falling back to XHR polyfills. v1.0.1 – last release dated 2016. Minimal, zero-dependency bundler-friendly utility; must be used with fetch-ie8 (imported before it). Differentiates from generic fetch polyfills by conditionally enabling native fetch only on fully compliant browsers, preventing silent data corruption due to Chinese character encoding bugs.
npm install fetch-detectorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the correct import order: first fetch-detector, then fetch-ie8, to conditionally enable native fetch or fallback to XHR polyfill.
Consider using a modern fetch polyfill like 'whatwg-fetch' or rely on browser built-in fetch (now widely supported).
Always place 'fetch-detector' import before 'fetch-ie8' import.
Create a custom declaration file: declare module 'fetch-detector';
Ensure 'fetch-detector' is imported before 'fetch-ie8' and that both are included in your bundle.
Run 'npm install fetch-detector' and verify import is 'import "fetch-detector"' (not from a subpath).
No dependency data recorded yet.