mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Cache linker cache files in memory (#9794)
This commit is contained in:
@@ -18,6 +18,7 @@ import {cssToCommonJS} from "./css-modules.js";
|
||||
import Resolver from "./resolver.js";
|
||||
import {
|
||||
optimisticStatOrNull,
|
||||
optimisticReadJsonOrNull,
|
||||
} from "../fs/optimistic.js";
|
||||
|
||||
import { isTestFilePath } from './test-files.js';
|
||||
@@ -1406,7 +1407,7 @@ export class PackageSourceBatch {
|
||||
if (cacheFilename) {
|
||||
let diskCached = null;
|
||||
try {
|
||||
diskCached = files.readJSONOrNull(cacheFilename);
|
||||
diskCached = optimisticReadJsonOrNull(cacheFilename);
|
||||
} catch (e) {
|
||||
// Ignore JSON parse errors; pretend there was no cache.
|
||||
if (!(e instanceof SyntaxError)) {
|
||||
|
||||
Reference in New Issue
Block a user