From d75033d1a8d1402495a339e64c48eaafb2cf3187 Mon Sep 17 00:00:00 2001 From: KGSM2 Date: Tue, 9 Jun 2026 14:34:02 +0600 Subject: [PATCH] fix(studio): use tsx/esm loader for vite build to resolve .ts imports Node's native ESM loader rejects `.ts` file extensions when Vite loads the config, which causes `@hyperframes/core/fonts/aliases` to fail with ERR_UNKNOWN_FILE_EXTENSION. Prefixing vite build with `node --import tsx/esm` lets Node resolve TypeScript source exports during the build, unblocking `packages/studio` and the downstream CLI build that bundles the studio dist. Co-Authored-By: Claude Sonnet 4.6 --- packages/studio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/studio/package.json b/packages/studio/package.json index 858ef3a53..c09f4a695 100644 --- a/packages/studio/package.json +++ b/packages/studio/package.json @@ -20,7 +20,7 @@ }, "scripts": { "dev": "vite", - "build": "vite build", + "build": "node --import tsx/esm node_modules/.bin/vite build", "typecheck": "tsc --noEmit", "test": "vitest run", "test:watch": "vitest"