OptionaldefaultThe value to return if the module was not found but notFound is not provided.
Optionalfailfail is a function. If the module resolved but importing it threw -- for example it
contains a syntax error, throws at module scope, or one of its dependencies is missing --
then:
fail if it's providedthe error from importing the module
Optionallogfunction to log the module not found message, default log function uses console.log
OptionalmessageTell optional import to log a message if the module is not found.
This field can have these values:
true - log with default messageOptionalmetameta is the import.meta from the caller's context.
If not provided, then use the one received when creating the optional import function.
OptionalnotHow to treat a package that is installed but does not export the requested subpath.
OptionalnotnotFound is a function. If the specifier could not be resolved, then:
notFound if it's provideddefault value.the resolve error
Options for calling an optional import