From 8d8dab5817427d10106c87bf240f941c30b87d70 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 17 Oct 2026 15:51:45 +0200 Subject: [PATCH] fix(ui): esbuild platform node for UI fixture bundling Add platform: 'node' to esbuild build options so Node.js built-ins (node:async_hooks, node:crypto, node:fs/promises, node:path) are treated as external instead of failing to resolve during browser bundle generation in e2e/ui/fixture-server.mjs. --- e2e/ui/fixture-server.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/ui/fixture-server.mjs b/e2e/ui/fixture-server.mjs index fa6bdd86..d2f5bf3d 100644 --- a/e2e/ui/fixture-server.mjs +++ b/e2e/ui/fixture-server.mjs @@ -30,6 +30,7 @@ const bundle = await build({ outdir: path.join(root, "test-results/ui-fixture"), format: "iife", jsx: "automatic", + platform: "node", alias: { "@": path.join(root, "src") }, define: { "process.env.NODE_ENV": '"production"' }, plugins: [