VM | @ethereumjs/vm
Basic usage of this library in the browser (using Vite)
Run the Example
- Go to the library root directory (packages/[LIBRARY_NAME]/)
- Build "dist" folder with: npm run build
- Start Vite development server with: npx vite
- Open the example URL in the browser (http://localhost:5173/examples/browser.html)
- Open the development console (e.g. Chrome Developer Tools)
- See example results and play with the code
Interactive CLI
- Open the "Sources -> Page" tab in the Chrome Developer Tools
- Set a breakpoint within the original "browser.html" file (so not the one generated by Vite)
- Now you can use and play with the imports dynamically