From 1b5eefb8c3f91a7c81b90b70f00604b6fe7d243c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 13 Jun 2026 17:42:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Reword=20hack=20comment=20in=20w?= =?UTF-8?q?orkerFactory=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/workerFactory.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/workerFactory.test.ts b/tests/unit/workerFactory.test.ts index 278ab4b..175091d 100644 --- a/tests/unit/workerFactory.test.ts +++ b/tests/unit/workerFactory.test.ts @@ -11,8 +11,7 @@ let workerTerminated = false; const Module = require('module'); -// Hack for import.meta.env -// TSX does not polyfill import.meta.env out of the box when evaluating imported modules. +// Provide a polyfill for import.meta.env to prevent crashes during TSX evaluation. // We intercept compilation of workerFactory to inject the polyfill at the top of the file. const originalCompile = Module.prototype._compile; Module.prototype._compile = function(content: string, filename: string) {