{"version":3,"file":"slim.cjs","names":["createUncompiledMacroError"],"sources":["../src/slim.ts"],"sourcesContent":["/**\n * @fileoverview Fict Slim entrypoint\n *\n * Exposes compiler macros only. Intended for users who want the smallest\n * runtime surface and rely on the compiler to erase macro calls.\n *\n * @public\n * @packageDocumentation\n */\n\nimport type { AsyncContext } from '@fictjs/runtime/advanced'\n\nimport { createUncompiledMacroError } from './macro-diagnostics'\n\n/** Compiler macro for an explicitly asynchronous derived value. */\nexport function $async<T>(\n  _produce: (context: AsyncContext<T>) => T | PromiseLike<T> | AsyncIterable<T>,\n): T {\n  throw createUncompiledMacroError('$async')\n}\n\n/**\n * Compiler macro for reactive state.\n * This is transformed at compile time and should never be called at runtime.\n */\nexport function $state<T>(_initialValue: T): T {\n  throw createUncompiledMacroError('$state')\n}\n\n/**\n * Compiler macro for reactive effects.\n * This is transformed at compile time and should never be called at runtime.\n */\nexport function $effect(_fn: () => void | (() => void)): void {\n  throw createUncompiledMacroError('$effect')\n}\n"],"mappings":";;;;AAeA,SAAgB,OACd,UACG;CACH,MAAMA,0BAAAA,2BAA2B,QAAQ;AAC3C;;;;;AAMA,SAAgB,OAAU,eAAqB;CAC7C,MAAMA,0BAAAA,2BAA2B,QAAQ;AAC3C;;;;;AAMA,SAAgB,QAAQ,KAAsC;CAC5D,MAAMA,0BAAAA,2BAA2B,SAAS;AAC5C"}