Enum deno_core::ResolutionKind
source · pub enum ResolutionKind {
MainModule,
Import,
DynamicImport,
}
Variants§
MainModule
This kind is used in only one situation: when a module is loaded via
JsRuntime::load_main_module
and is the top-level module, ie. the one
passed as an argument to JsRuntime::load_main_module
.
Import
This kind is returned for all other modules during module load, that are static imports.
DynamicImport
This kind is returned for all modules that are loaded as a result of a
call to import()
API (ie. top-level module as well as all its
dependencies, and any other import()
calls from that load).