pathToURL = str => {
  /* istanbul ignore next */
  if (path.sep === path.win32.sep) {
    str = str.replace(/\\/g, '/');
  }

  return str;
}
Fork of babel-plugin-bare-import-rewrite:
- Adds `preserveSymlinks` when calling `resolve`
- Disabled rewrite of module folder

We can look into making a PR to merge these things back upstream,
but some are fundamental design choices.