{"version":3,"file":"devtools.umd.js","sources":["../src/devtools.js","../src/index.js"],"sourcesContent":["import { options, Fragment, Component } from 'preact';\r\n\r\nexport function initDevTools() {\r\n\tif (typeof window != 'undefined' && window.__PREACT_DEVTOOLS__) {\r\n\t\twindow.__PREACT_DEVTOOLS__.attachPreact('10.6.4', options, {\r\n\t\t\tFragment,\r\n\t\t\tComponent\r\n\t\t});\r\n\t}\r\n}\r\n","import { options } from 'preact';\r\nimport { initDevTools } from './devtools';\r\n\r\ninitDevTools();\r\n\r\n/**\r\n * Display a custom label for a custom hook for the devtools panel\r\n * @type {(value: T, name: string) => T}\r\n */\r\nexport function addHookName(value, name) {\r\n\tif (options._addHookName) {\r\n\t\toptions._addHookName(name);\r\n\t}\r\n\treturn value;\r\n}\r\n"],"names":["window","__PREACT_DEVTOOLS__","attachPreact","options","Fragment","Component","value","name"],"mappings":"0NAGsB,oBAAVA,QAAyBA,OAAOC,qBAC1CD,OAAOC,oBAAoBC,aAAa,SAAUC,UAAS,CAC1DC,SAAAA,WACAC,UAAAA,4BCGI,SAAqBC,EAAOC,UAC9BJ,eACHA,cAAqBI,GAEfD"}