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) {