Skip to main content
Version: Next 🚧

[I] ResolveModuleOptions

Properties

PropertyTypeDescription
baseDirstring-
directoryIndexFiles?string[]When resolution reach a directory without package.json look for those files to load in order. Default ["index.mjs", "index.js"]
resolveMain?(pkg: any) => stringWhen resolution reach package.json returns the path to the file relative to it. Default pkg.main