@ac-essentials/misc-util
    Preparing search index...

    Function importModule

    • Import module at runtime with custom resolve paths.

      If used, the resolve paths will be used instead of the default node.js ones, except for the GLOBAL_FOLDERS like $HOME/.node_modules, which are always included.

      Type Parameters

      • T

      Parameters

      • id: string

        The module to load

      • OptionalresolvePaths: string[]

        The paths to use to resolve the module

      Returns Promise<T>

      The loaded module