Aller au contenu principal
Version: Next

loadModule

Callable

  • loadModule(p: string, options?: { enableCache?: boolean; loadMode?: commonjs | esm; safeLoad?: boolean }): Promise<any>

  • load module, and it can be chosen commonjs or esm mode

    @since

    3.12.0