Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Bundler Overview

The Tevm bundler turns a Solidity import into a typed JavaScript module during a normal application build.

Pipeline

  1. A plugin sees a .sol or .s.sol import.
  2. Tevm resolves Solidity imports and remappings.
  3. solc compiles the dependency graph.
  4. Tevm converts the selected contract output into a contract module.
  5. The host bundler includes the generated JavaScript and TypeScript types.

The emitted contract object contains the ABI, optional bytecode and deployed bytecode, type-safe read and write action creators, event helpers, and withAddress.

Plugin Entry Points

BundlerEntry pointExport
Vitetevm/bundler/vite-pluginvitePluginTevm
Rolluptevm/bundler/rollup-pluginrollupPluginTevm
esbuildtevm/bundler/esbuild-pluginesbuildPluginTevm
Webpacktevm/bundler/webpack-pluginWebpackPluginTevm
rspacktevm/bundler/rspack-pluginRspackPluginTevm
Buntevm/bundler/bun-pluginbunPluginTevm

See the quickstart for executable configuration examples.

Runtime Independence

Generated contracts are compatible with viem-style contract calls. They can be used with a MemoryClient, a remote viem client, or any integration that accepts the generated action parameters.

The rc.151 package does not export the proposed inline sol template tag or a loadContract address loader.

Related

Methods and Exports · Internals · Troubleshooting