UNPKG

gatsby-source-sanity

Version:

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

8 lines 269 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // `drafts.foo-bar` => `foo.bar` function unprefixDraftId(id) { return id.replace(/^drafts\./, ''); } exports.unprefixDraftId = unprefixDraftId; //# sourceMappingURL=unprefixDraftId.js.map