From aac9ddb568faf7222ac821f800737d00e6636705 Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Thu, 25 Apr 2024 16:35:57 +0200 Subject: [PATCH] Update add-virtual-imports.ts --- package/src/utilities/add-virtual-imports.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/src/utilities/add-virtual-imports.ts b/package/src/utilities/add-virtual-imports.ts index 16eb969..3afd1db 100644 --- a/package/src/utilities/add-virtual-imports.ts +++ b/package/src/utilities/add-virtual-imports.ts @@ -82,9 +82,7 @@ const createVirtualModule = ( const data = imports.find( (_import) => _import.id === resolution && - (_import.context === undefined - ? true - : _import.context === context), + (_import.context === undefined || _import.context === context), ); if (data) {