pub enum ModuleResolution {
Node16,
Node20,
NodeNext,
Bundler,
}Variants§
Node16
When combined with the corresponding module values, picks the right algorithm for each resolution based on whether Node.js will see an import or require in the output JavaScript code
Node20
When combined with the corresponding module values, picks the right algorithm for each resolution based on whether Node.js will see an import or require in the output JavaScript code
NodeNext
When combined with the corresponding module values, picks the right algorithm for each resolution based on whether Node.js will see an import or require in the output JavaScript code
Bundler
For use with bundlers. Like node16 and nodenext, this mode supports package.json “imports” and “exports”, but unlike the Node.js resolution modes, bundler never requires file extensions on relative paths in imports.
Trait Implementations§
Source§impl Clone for ModuleResolution
impl Clone for ModuleResolution
Source§fn clone(&self) -> ModuleResolution
fn clone(&self) -> ModuleResolution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModuleResolution
impl Debug for ModuleResolution
Source§impl<'de> Deserialize<'de> for ModuleResolution
impl<'de> Deserialize<'de> for ModuleResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ModuleResolution
impl Display for ModuleResolution
Source§impl PartialEq for ModuleResolution
impl PartialEq for ModuleResolution
Source§impl Serialize for ModuleResolution
impl Serialize for ModuleResolution
impl Copy for ModuleResolution
impl Eq for ModuleResolution
impl StructuralPartialEq for ModuleResolution
Auto Trait Implementations§
impl Freeze for ModuleResolution
impl RefUnwindSafe for ModuleResolution
impl Send for ModuleResolution
impl Sync for ModuleResolution
impl Unpin for ModuleResolution
impl UnsafeUnpin for ModuleResolution
impl UnwindSafe for ModuleResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.