Skip to content

Commit

Permalink
refactor: simplify expression (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored Apr 25, 2024
1 parent 60f6c71 commit a1f8eff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions package/src/utilities/add-virtual-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a1f8eff

Please sign in to comment.