Skip to content

Commit

Permalink
Minor comment about native fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 22, 2024
1 parent bab0bb5 commit 22079c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RemoteAssetCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class RemoteAssetCache extends AssetCache {
body = await this.url();
} else {
let fetchOptions = optionsOverride.fetchOptions || this.options.fetchOptions || {};

// v5: now using global (Node-native or otherwise) fetch instead of node-fetch
let response = await fetch(this.url, fetchOptions);
if (!response.ok) {
throw new Error(
Expand Down

0 comments on commit 22079c6

Please sign in to comment.