getDirectories = (source) =>
  fs.readdirSync(source).filter((name) => isDirectory(path.join(source, name)))
Creates a map of exported modules, allowing the RNW babel plugin to rewrite
paths only for modules it knows are exported by RNW.