getHasteName(filename: string) {
    const matches = fs
      .readFileSync(filename, 'utf8')
      .match(/@providesModule ([^\n]+)/);

    if (!matches) {
      return undefined;
    }

    return matches[1];
  }
Simple hasteImpl that parses @providesModule annotation from JS modules.