From 3719ebb814ed70a45b8ad3954f686a050897bfc8 Mon Sep 17 00:00:00 2001 From: kewdex Date: Wed, 28 Jan 2026 15:21:11 +0100 Subject: [PATCH 1/2] fix(hermes): add eager compilation for all JS --- bin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index 7f46f6c..5e55d10 100755 --- a/bin/index.js +++ b/bin/index.js @@ -19,7 +19,7 @@ import { glob as globImplementation } from '../src/glob.cjs' const DEFAULT_PATTERNS = [`**/?(*.)+(spec|test).?([cm])[jt]s?(x)`] // do not trust magic dirs by default const bundleOpts = { pure: true, bundle: true, esbuild: true, ts: 'auto' } const bareboneOpts = { ...bundleOpts, barebone: true } -const hermesA = ['-w', '-Xmicrotask-queue'] // -Xes6-class fails with -O0 / -Og, --block-scoping fails in default, any of that is bad +const hermesA = ['-w', '-Xmicrotask-queue', '--eager'] // -Xes6-class fails with -O0 / -Og, --block-scoping fails in default, any of that is bad const hermesS = [...hermesA, '-Xes6-block-scoping'] const denoA = ['run', '--allow-all'] // also will set DENO_COMPAT=1 env flag below const denoT = ['test', '--allow-all'] From e3df690e824d7325a1376fd7bff254069dd6be3b Mon Sep 17 00:00:00 2001 From: Nikita Skovoroda Date: Wed, 28 Jan 2026 17:45:18 +0300 Subject: [PATCH 2/2] refactor: Hermes uses single-dash options --- bin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index 5e55d10..c114a0f 100755 --- a/bin/index.js +++ b/bin/index.js @@ -19,7 +19,7 @@ import { glob as globImplementation } from '../src/glob.cjs' const DEFAULT_PATTERNS = [`**/?(*.)+(spec|test).?([cm])[jt]s?(x)`] // do not trust magic dirs by default const bundleOpts = { pure: true, bundle: true, esbuild: true, ts: 'auto' } const bareboneOpts = { ...bundleOpts, barebone: true } -const hermesA = ['-w', '-Xmicrotask-queue', '--eager'] // -Xes6-class fails with -O0 / -Og, --block-scoping fails in default, any of that is bad +const hermesA = ['-w', '-Xmicrotask-queue', '-eager'] // -Xes6-class fails with -O0 / -Og, --block-scoping fails in default, any of that is bad const hermesS = [...hermesA, '-Xes6-block-scoping'] const denoA = ['run', '--allow-all'] // also will set DENO_COMPAT=1 env flag below const denoT = ['test', '--allow-all']