hydrogen-sanity
Version:
Sanity.io toolkit for Hydrogen
1 lines • 860 B
Source Map (JSON)
{"version":3,"file":"VisualEditing.client.cjs","sources":["../../src/visual-editing/VisualEditing.client.tsx"],"sourcesContent":["import {VisualEditing} from '@sanity/visual-editing/remix'\n\n/**\n * Prevent a consumer from importing into a worker/server bundle.\n */\nif (typeof document === 'undefined') {\n throw new Error(\n 'Visual editing should only run client-side. Please check that this file is not being imported into a worker or server bundle.',\n )\n}\n\n/**\n * Enables visual editing on the front-end\n * @see https://www.sanity.io/docs/introduction-to-visual-editing\n */\nexport default VisualEditing\n"],"names":["document","Error","Object","defineProperty","exports","enumerable","get","remix","VisualEditing"],"mappings":"2DAKA,UAAWA,SAAa,IACtB,MAAM,IAAIC,MACR,iIACFC,OAAAC,eAAAC,QAAA,UAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAC,EAAAC,aAAA"}