Skip to content

[I] ResolveModuleOptions

Properties

PropertyModifierTypeDescription
baseDirpublicstring-
conditions?readonlystring[]List of conditions to match in package exports
directoryIndexFiles?publicstring[]When resolution reach a directory without package.json look for those files to load in order. Default ["index.mjs", "index.js"]
fallbackOnMissingCondition?readonlybooleanIf exports is defined ignore if the none of the given condition is found and fallback to using main field resolution. By default it will throw an error.
resolveMain?public(pkg: any) => stringWhen resolution reach package.json returns the path to the file relative to it. Default pkg.main