From 8052b4fe1ff0d1c0c6b353c500af889d9e1108a1 Mon Sep 17 00:00:00 2001 From: Daniel Choudhury Date: Thu, 7 Dec 2023 12:53:15 +0700 Subject: [PATCH] Auto import Response from whatwg-node/fetch --- packages/babel-config/src/api.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/babel-config/src/api.ts b/packages/babel-config/src/api.ts index 31f31d65d620..11feb066c36f 100644 --- a/packages/babel-config/src/api.ts +++ b/packages/babel-config/src/api.ts @@ -114,6 +114,12 @@ export const getApiSideBabelPlugins = ( members: ['context'], path: '@redwoodjs/graphql-server', }, + + { + // import { Response } from '@whatwg-node/fetch' + members: ['Response'], + path: '@whatwg-node/fetch', + }, ], }, 'rwjs-babel-auto-import',