VM | @ethereumjs/vm

Basic usage of this library in the browser (using Vite)

Run the Example

  1. Go to the library root directory (packages/[LIBRARY_NAME]/)
  2. Build "dist" folder with: npm run build
  3. Start Vite development server with: npx vite
  4. Open the example URL in the browser (http://localhost:5173/examples/browser.html)
  5. Open the development console (e.g. Chrome Developer Tools)
  6. See example results and play with the code

Interactive CLI

  1. Open the "Sources -> Page" tab in the Chrome Developer Tools
  2. Set a breakpoint within the original "browser.html" file (so not the one generated by Vite)
  3. Now you can use and play with the imports dynamically