activity/vite.config.ts
openaliro/openaliro
Module

vite.config.ts

activity/vite.config.ts2 documented symbols
flowchart TD
  buildStart --> sha256

API

Ffunction twinPassthrough(): Plugin

activity/vite.config.ts:25

twin.js carries the WASM module inline as a byte array, so it is a binary file wearing a .js extension. Vite must never see it as source: bundling, minifying or re-encoding it corrupts the firmware. It is copied with fs, and the copy is compared back against the original before the build succeeds.

FbuildStart()

activity/vite.config.ts:33

Fail before doing any work, so a drifted twin never half-builds.

calls sha256
Undocumented (2)

sha256, writeBundle