@netlify/content-engine
Version:
16 lines • 695 B
JavaScript
// This module should be imported as first or one first modules in engines.
// It allows to provide alternative `fs` module by setting `global._fsWrapper`
// variable before importing engine. It will automatically fallback to regular
// `fs` if alternative `fs` is not provided.
Object.defineProperty(exports, "__esModule", { value: true });
if (global._fsWrapper) {
global._actualFsWrapper = global._fsWrapper;
}
else {
// fs alternative not provided - falling back to regular fs
global._actualFsWrapper = __non_webpack_require__(`fs`);
}
// hydrate webpack module cache (consume global, so it's not lazy)
require(`fs`);
//# sourceMappingURL=engines-fs-provider.js.map
;