Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(build): ship the Object.hasOwn guard into web workers too

nirholasef74482a899d
diff --git a/vite.config.js b/vite.config.js
index 27077c79d..8171587a3 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -277,6 +277,12 @@ const appConfig = {
],
exclude: ['@three-ws/agent-payments'],
},
+ // Web Workers go through their OWN rollup pass, so build.rollupOptions below
+ // does not reach them: without this the grinder workers shipped unguarded
+ // `Object.hasOwn` (eoa-grinder-worker did) and died on the same old WebViews.
+ worker: {
+ rollupOptions: { output: { banner: LEGACY_RUNTIME_POLYFILL } },
+ },
build: {
chunkSizeWarningLimit: 1000,
// Skip computing gzip/brotli sizes during build — saves several seconds on
@@ -2719,6 +2725,10 @@ const libConfig = {
resolve: {
dedupe: ['three'],
},
+ // Same separate-rollup-pass caveat as the app config above.
+ worker: {
+ rollupOptions: { output: { banner: LEGACY_RUNTIME_POLYFILL } },
+ },
build: {
outDir: 'dist-lib',
emptyOutDir: true,