From 2d264e240131223b01f2d4e4cc89c7e373663435 Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Mon, 26 Oct 2026 16:01:09 -0700 Subject: [PATCH] Classify only a native addon refusal as one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The computed createRequire note main added ('…, such as a native addon, ends the program') matched the native-addon pattern, so every package with a computed require became a runtime island; it is a deferred gap now, like other fences that may never run. --- packages/compiler/src/node-islands/classify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/node-islands/classify.ts b/packages/compiler/src/node-islands/classify.ts index c41b9437c..b08ac63aa 100644 --- a/packages/compiler/src/node-islands/classify.ts +++ b/packages/compiler/src/node-islands/classify.ts @@ -25,7 +25,7 @@ const MESSAGE_REASONS: { code: string; pattern: RegExp; reason: string }[] = [ pattern: /createRequire's require with this argument shape/, reason: "dynamic-require", }, - { code: "SC2020", pattern: /native addon/, reason: "native-addon" }, + { code: "SC2020", pattern: /^native addon /, reason: "native-addon" }, { code: "SC2020", pattern: /through require\.cache|require\.extensions|Module\._|module\.register/,