From 2c2a20b80d647a0f7dd998f124a2316115bc4903 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 9 Apr 2026 18:29:00 +0300 Subject: [PATCH] chore(server): bypass build warning --- scripts/build-utils.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/build-utils.ts b/scripts/build-utils.ts index 23af1db90d..dab27556f8 100644 --- a/scripts/build-utils.ts +++ b/scripts/build-utils.ts @@ -54,7 +54,15 @@ export default class BuildHelper { "pdfjs-dist", "./xhr-sync-worker.js", "vite", - "tesseract.js" + "tesseract.js", + // Test fixtures referenced via require.resolve from + // integration-test-only code paths in apps/server. These + // paths are gated at runtime by TRILIUM_INTEGRATION_TEST and + // never reached in production, but esbuild can't see through + // the gate during static analysis. Marking them external + // suppresses the spurious "require.resolve not external" + // warning without affecting the bundle behavior. + "@triliumnext/core/src/test/*" ], metafile: true, splitting: false,