{"version":3,"sources":["../src/vitePluginTevm.js"],"names":["createUnplugin","tevmUnplugin"],"mappings":";;;;;AAqDO,IAAM,cAAA,GAAiBA,uBAAA,CAAeC,qBAAY,CAAA,CAAE","file":"index.cjs","sourcesContent":["import { createUnplugin, tevmUnplugin } from '@tevm/unplugin'\n\n/**\n * Creates a Vite plugin for Tevm that enables direct Solidity imports in JavaScript\n * and TypeScript code.\n *\n * This plugin integrates with Vite to transform imports of .sol files into JavaScript\n * modules that export Tevm Contract instances. These instances include the contract's ABI,\n * bytecode, and type information, allowing you to interact with Ethereum smart contracts\n * in a type-safe way directly in your Vite-powered applications.\n *\n * @returns {import('vite').Plugin} A Vite plugin that handles Solidity imports\n *\n * @example\n * // Basic Configuration - Add the plugin to your Vite configuration\n * // vite.config.js\n * import { defineConfig } from 'vite'\n * import { vitePluginTevm } from '@tevm/vite'\n *\n * export default defineConfig({\n *   plugins: [vitePluginTevm()],\n * })\n *\n * @example\n * // TypeScript Configuration - For full TypeScript support\n * // Add to tsconfig.json:\n * // {\n * //   \"compilerOptions\": {\n * //     \"plugins\": [{ \"name\": \"tevm/ts-plugin\" }]\n * //   }\n * // }\n *\n * @example\n * // How Solidity imports work - Generated module example\n * import { createContract } from '@tevm/contract'\n *\n * export const ERC20 = createContract({\n *   name: 'ERC20',\n *   humanReadableAbi: [\n *     'function name() view returns (string)',\n *     'function symbol() view returns (string)',\n *     // other functions...\n *   ],\n *   bytecode: '0x...',\n *   deployedBytecode: '0x...',\n * })\n *\n * The plugin supports Vite's HMR, so when you edit your Solidity files, your\n * application will update without a full reload if possible.\n *\n * @see {@link https://tevm.sh/learn/solidity-imports | Tevm Solidity Import Documentation}\n * @see {@link https://vitejs.dev/guide/api-plugin.html | Vite Plugin API}\n */\nexport const vitePluginTevm = createUnplugin(tevmUnplugin).vite\n"]}