docs: function writeSync(props: {
    filePath: string,
    sourceCode: string,
    transformCacheKey: string,
    transformOptions: TransformOptions,
    result: CachedResult,
  }): void {
    const cacheFilePath = getCacheFilePaths(props);
    mkdirp.sync(path.dirname(cacheFilePath.transformedCode));
    const {result} = props;
    unlinkIfExistsSync(cacheFilePath.transformedCode);
    unlinkIfExistsSync(cacheFilePath.metadata);
    writeFileAtomicSync(cacheFilePath.transformedCode, result.code);
    writeFileAtomicSync(cacheFilePath.metadata, JSON.stringify([
      imurmurhash(result.code).result(),
      hashSourceCode(props),
      result.dependencies,
      result.dependencyOffsets,
      result.map,
    ]));
  }