diff --git a/lib/plugin.server.js b/lib/plugin.server.js index e02394b..0e8978a 100644 --- a/lib/plugin.server.js +++ b/lib/plugin.server.js @@ -1,11 +1,11 @@ -import _fetch from 'node-fetch' +import * as _fetch from 'node-fetch' import { AbortController as _AbortController } from 'abort-controller' import { ReadableStream as _ReadableStream } from 'web-streams-polyfill/ponyfill/es2018' const TEN_MEGABYTES = 1000 * 1000 * 10 if (!global.fetch) { - global.fetch = (url, options) => _fetch(url, { highWaterMark: TEN_MEGABYTES, ...options }) + global.fetch = (url, options) => _fetch.default(url, { highWaterMark: TEN_MEGABYTES, ...options }) } if (!global.Headers) {