UNPKG

@netlify/content-engine

Version:
19 lines 867 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCache = getCache; const import_from_1 = __importDefault(require("import-from")); function getCache() { if (global._polyfillRemoteFileCache) { return global._polyfillRemoteFileCache; } // We need to use the project's version of @netlify/content-engine to pick up the correct path to // the cache const { getCache: getContentEngineCache } = (0, import_from_1.default)(global.__GATSBY?.root ?? process.cwd(), `@netlify/content-engine/dist/utils/get-cache`); const cache = getContentEngineCache(`content-engine`); global._polyfillRemoteFileCache = cache; return cache; } //# sourceMappingURL=cache.js.map