MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / _getCacheProps

Method _getCacheProps

packager/src/node-haste/Module.js:407–421  ·  view source on GitHub ↗
(transformOptions: TransformOptions, transformOptionsKey: string)

Source from the content-addressed store, hash-verified

405 }
406
407 _getCacheProps(transformOptions: TransformOptions, transformOptionsKey: string) {
408 const sourceCode = this._readSourceCode();
409 const getTransformCacheKey = this._getTransformCacheKey;
410 return {
411 filePath: this.path,
412 sourceCode,
413 getTransformCacheKey,
414 transformOptions,
415 transformOptionsKey,
416 cacheOptions: {
417 resetCache: this._options.resetCache,
418 reporter: this._reporter,
419 },
420 };
421 }
422
423 hash() {
424 return `Module : ${this.path}`;

Callers 2

readFreshMethod · 0.95

Calls 1

_readSourceCodeMethod · 0.95

Tested by

no test coverage detected