mirror of
https://github.com/trailbaseio/trailbase
synced 2026-04-21 21:47:55 +00:00
| .. | ||
| src | ||
| .gitignore | ||
| eslint.config.mjs | ||
| hot-reload.ts | ||
| Makefile | ||
| package.json | ||
| README.md | ||
| vite.config.ts | ||
Example WASM Component
An example JavaScript WASM component for TrailBase. Feel free to copy and make it your own.
Running in Development
Assuming you have trail installed and in your $PATH, simply run
npm run dev
to start a TrailBase server with the component and a file watcher.
Whenever a file under ./src changes, the watcher will rebuild the component and send a SIGHUP ot the server to reload the component. This will typically take a few seconds.
Limitations
Adding or removing new routes will require restarting the server.