From ad5de51320c707b1b18702f4401cda7c0ef077a9 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 19 May 2023 21:37:31 +0300 Subject: [PATCH] Why? --- src/utils/net/form-data.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/net/form-data.ts b/src/utils/net/form-data.ts index b26ce31..9ff7bcd 100644 --- a/src/utils/net/form-data.ts +++ b/src/utils/net/form-data.ts @@ -97,3 +97,9 @@ function toFormDataEntry(value: unknown): [string | Blob, string?] { return [JSON.stringify(value)]; } + +// Force this to be included into the final build. +import { MultipartParser } from "node-fetch/src/utils/multipart-parser"; +if (!MultipartParser) { + isFormData(MultipartParser); +}