From a91e4bde1977c74db790541f5c71e861e7841b70 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sat, 7 Sep 2024 14:15:22 +0800 Subject: [PATCH] fix(shell): expect hoist pollution --- packages/shell/src/services/mime.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shell/src/services/mime.ts b/packages/shell/src/services/mime.ts index 4fcd625..967e09d 100644 --- a/packages/shell/src/services/mime.ts +++ b/packages/shell/src/services/mime.ts @@ -1,5 +1,7 @@ -// Should be 'mime/lite' but there's hoist pollution -import { Mime } from 'mime/dist/src/index_lite' +// @ts-expect-error +// There's a hoist pollution (@types/mime). see +// https://github.com/Microsoft/TypeScript/issues/11917 +import { Mime } from 'mime/lite' import mimeStandard from 'mime/types/standard.js' export const mime = new Mime().define(mimeStandard).define({