mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove cache option from readAndWatchFileWithHash
This commit is contained in:
@@ -87,23 +87,16 @@ export class CssFile extends InputFile {
|
||||
this._minifiedFiles.push({ ...options });
|
||||
}
|
||||
|
||||
readAndWatchFileWithHash(path, { cache } = {}) {
|
||||
readAndWatchFileWithHash(path) {
|
||||
const filePath = convertToPosixPath(path);
|
||||
|
||||
if (cache) {
|
||||
const hash = optimisticHashOrNull(filePath);
|
||||
const contents = optimisticReadFile(filePath);
|
||||
this._watchSet.addFile(filePath, hash);
|
||||
const hash = optimisticHashOrNull(filePath);
|
||||
const contents = optimisticReadFile(filePath);
|
||||
this._watchSet.addFile(filePath, hash);
|
||||
|
||||
return {
|
||||
hash,
|
||||
contents
|
||||
}
|
||||
return {
|
||||
hash,
|
||||
contents
|
||||
}
|
||||
|
||||
return readAndWatchFileWithHash(
|
||||
this._watchSet,
|
||||
filePath,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user