code: function getModulePath (mod, useAbsolutePath) {
    const modPath =
      mod === 'regenerator-runtime'
        ? 'regenerator-runtime/runtime'
        : `core-js/modules/${mod}`
    return useAbsolutePath ? require.resolve(modPath) : modPath
  }
docs: slightly modifiled from @babel/preset-env/src/utils use an absolute path for core-js modules, to fix conflicts of different core-js versions