UNPKG

@loaders.gl/core

Version:

Framework-independent loaders for 3D graphics formats

12 lines (11 loc) 387 B
import { isFileReadable } from '../../javascript-utils/is-type'; import { resolvePath } from './file-aliases'; import fetchFileReadable from './fetch-file.browser'; export async function fetchFile(url, options) { if (isFileReadable(url)) { return fetchFileReadable(url, options); } url = resolvePath(url); return fetch(url, options); } //# sourceMappingURL=fetch-file.js.map