This release makes some improvement in the way modules were marked as real.
In the past, it was not possible to both fake/redirect a module and mark it as real.
Usually this is not an issue, but in some rare cases you might want to make a faked module import itself.
In that case it can be useful to mark the self imported module as real.
BREAKING: The useUnresolved
option is now called exactMatch
to make it describe more clearly what it does.
The behavior was also adjusted slightly: When the option was used in the past, it used to also match paths relative to the import.meta.url
of the Importer
. This is now no longer the case, and when exactMatch
is used it truly only matches that exact specifier.