UNPKG

gatsby-source-sanity

Version:

Gatsby source plugin for building websites using Sanity.io as a backend.

12 lines 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Gatsby mutates (...tm) the `internal` object, adding `owner`. // This function helps "clean" the internal representation if we are readding/reusing the node exports.removeGatsbyInternalProps = (node) => { if (!node || typeof node.internal === 'undefined') { return node; } const { mediaType, type, contentDigest } = node.internal; return Object.assign(Object.assign({}, node), { internal: { mediaType, type, contentDigest } }); }; //# sourceMappingURL=removeGatsbyInternalProps.js.map