From 57eb2cf0be9d8f6f1d79542585cee7f6d28d4e57 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Thu, 15 Jun 2023 11:36:43 +0200 Subject: [PATCH] Fix esm asset re-exports from node-fetch --- isomorphic-fetch/node.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/isomorphic-fetch/node.mjs b/isomorphic-fetch/node.mjs index 6bcba68..e0cd188 100644 --- a/isomorphic-fetch/node.mjs +++ b/isomorphic-fetch/node.mjs @@ -1,3 +1 @@ -import fetch from "node-fetch"; -const { Request, Response, Headers } = fetch; -export { fetch, Request, Response, Headers }; +export { default as fetch, Request, Response, Headers } from 'node-fetch';