moduleresolver
Moduleresolver is a software component responsible for translating module identifiers into concrete module resources in modular systems. It is used by runtimes, bundlers, and plugin architectures to locate, load, and optionally transform modules based on a set of resolution rules.
A moduleresolver takes inputs such as a module specifier (for example, "library/foo" or "./local.js"), a referring
Resolvers can be implemented as synchronous or asynchronous components and are often composable into a chain
In practice, moduleresolvers appear in bundlers like webpack, rollup, and esbuild; in runtime module loaders of
Related concepts include module loaders, dependency graphs, and import maps.