function resolveModulePath(packageName) {
  const require = createRequire(import.meta.url);
  return require.resolve(packageName);
}
Commonjs equivalent of `require.resolve`.
@param {string} packageName