resolve-import
    Preparing search index...

    Interface ResolveImportOpts

    interface ResolveImportOpts {
        conditions?: string[];
        originalParent?: string;
    }
    Index

    Properties

    conditions?: string[]

    List of conditions to resolve. Defaults to ['import', 'node'].

    If set to ['require', 'node'], then this is functionally equivalent to require.resolve().

    'default' is always allowed (except if you pass the negative condition '!default').

    originalParent?: string

    Used when resolves take multiple steps through dependencies.