Kaoru0822 and Claude Opus 5.5
4692bb3330
fix(reference): stop attributing overwritten require members to Node ( #3801 )
...
* fix(reference): stop attributing overwritten require members to Node
import-reference-source treated require.resolve(...) and require.main(...)
as Node's resolver even after the file replaced that member, so a literal
argument became a parsed internal dependency that the source never loads.
Attribute member calls only while the loader's resolve and main members
keep Node's identity: no write to either member or a computed member
(assignment, update, delete, destructuring) and no use of require as a
value where a mutator or alias could replace them. Bare require(...) calls
are unaffected.
Fixes #3393
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* fix(reference): keep optional and wrapped loader uses intact
An optional call require?.(...) or a TypeScript or parenthesis wrapper
around require was read as require escaping as a value, which disabled
every member-call link in the file. Look through inert wrappers and
accept optional calls before deciding the loader escaped, and add
controls for bare calls after a member overwrite, a local loader's
member write, and optional calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-14 19:23:06 -07:00
..
2026-10-15 03:43:28 +08:00
2026-10-15 03:43:28 +08:00
2026-10-14 19:13:17 -07:00
2026-10-12 14:12:44 +08:00
2026-10-13 16:04:44 +08:00
2026-10-15 03:43:29 +08:00
2026-10-14 08:31:16 +08:00
2026-10-15 03:43:28 +08:00
2026-10-11 22:33:57 +08:00
2026-10-11 04:43:02 +08:00
2026-10-11 05:17:10 +08:00
2026-10-12 04:53:27 +08:00
2026-10-14 03:00:27 +08:00
2026-10-11 05:33:14 +08:00
2026-10-14 08:31:16 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 15:20:09 +08:00
2026-10-14 08:31:16 +08:00
2026-10-11 04:43:02 +08:00
2026-10-12 05:05:21 +08:00
2026-10-13 23:47:18 +08:00
2026-10-12 05:05:21 +08:00
2026-10-12 05:05:21 +08:00
2026-10-14 08:31:16 +08:00
2026-10-08 04:03:24 +08:00
2026-10-14 20:10:17 +08:00
2026-10-14 19:49:08 +08:00
2026-10-14 06:23:22 +08:00
2026-10-14 06:23:22 +08:00
2026-10-14 19:49:08 +08:00
2026-10-13 17:46:04 +08:00
2026-10-14 06:07:08 +08:00
2026-10-13 18:38:46 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-14 06:07:08 +08:00
2026-10-15 00:16:09 +08:00
2026-10-13 18:54:05 +08:00
2026-10-14 21:51:19 +08:00
2026-10-14 06:07:08 +08:00
2026-10-13 22:04:22 +08:00
2026-10-14 16:54:07 +08:00
2026-10-14 16:10:46 +08:00
2026-10-14 17:49:19 +08:00
2026-10-14 08:25:53 +08:00
2026-10-13 14:51:55 +08:00
2026-10-15 05:05:24 +08:00
2026-10-15 05:05:24 +08:00
2026-10-11 00:28:24 +08:00
2026-10-11 19:50:50 +08:00
2026-10-12 06:29:27 +08:00
2026-10-15 06:45:53 +08:00
2026-10-11 05:33:05 +08:00
2026-10-12 04:45:17 +08:00
2026-10-14 12:17:54 +08:00
2026-10-14 04:47:34 +08:00
2026-10-14 12:21:26 +08:00
2026-10-10 05:56:01 +08:00
2026-10-13 21:34:38 +08:00
2026-10-14 08:25:53 +08:00
2026-10-10 23:01:54 +08:00
2026-10-12 14:12:44 +08:00
2026-10-13 22:13:22 +08:00
2026-10-13 22:13:22 +08:00
2026-10-10 14:20:22 +08:00
2026-10-14 08:28:14 +08:00
2026-10-14 08:28:14 +08:00
2026-10-14 08:28:14 +08:00
2026-10-14 14:47:26 +08:00
2026-10-14 14:47:26 +08:00
2026-10-15 00:09:42 +08:00
2026-10-14 08:25:53 +08:00
2026-10-14 19:13:01 -07:00
2026-10-11 05:16:03 +08:00
2026-10-11 04:43:02 +08:00
2026-10-13 20:37:48 +08:00
2026-10-12 11:34:02 +08:00
2026-10-11 05:33:15 +08:00
2026-10-11 05:33:21 +08:00
2026-10-13 23:52:47 +08:00
2026-10-11 13:29:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:46:50 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-13 21:23:58 +08:00
2026-10-11 05:33:15 +08:00
2026-10-11 17:43:28 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:46:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 19:13:17 -07:00
2026-10-12 14:12:44 +08:00
2026-10-12 06:29:27 +08:00
2026-10-08 04:03:24 +08:00
2026-10-14 19:13:01 -07:00
2026-10-09 07:13:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-09 07:13:32 +08:00
2026-10-10 21:17:35 +08:00
2026-10-14 08:31:16 +08:00
2026-10-15 05:05:24 +08:00
2026-10-15 03:43:29 +08:00
2026-10-14 21:15:34 +08:00
2026-10-14 14:47:26 +08:00
2026-10-14 14:47:26 +08:00
2026-10-14 19:49:08 +08:00
2026-10-07 21:09:33 +08:00
2026-10-14 13:58:12 +08:00
2026-10-14 21:51:19 +08:00
2026-10-10 22:11:14 +08:00
2026-10-11 05:33:05 +08:00
2026-10-14 09:47:57 +08:00
2026-10-11 19:01:33 +08:00
2026-10-10 16:10:39 +08:00
2026-10-12 14:12:44 +08:00
2026-10-14 12:21:26 +08:00
2026-10-14 16:51:59 +08:00
2026-10-12 22:55:55 +08:00
2026-10-12 06:36:45 +08:00
2026-10-13 21:13:01 +08:00
2026-10-14 08:31:16 +08:00
2026-10-13 09:24:04 +08:00
2026-10-11 06:10:10 +08:00
2026-10-11 06:10:10 +08:00
2026-10-11 06:10:10 +08:00
2026-10-14 08:36:38 +08:00
2026-10-11 04:43:02 +08:00
2026-10-14 08:43:59 +08:00
2026-10-11 06:30:56 +08:00
2026-10-14 13:58:18 +08:00
2026-10-11 06:10:10 +08:00
2026-10-14 19:23:06 -07:00
2026-10-11 06:10:10 +08:00
2026-10-13 14:51:23 +08:00
2026-10-11 06:10:10 +08:00
2026-10-14 08:31:16 +08:00
2026-10-13 18:24:40 +08:00
2026-10-14 19:06:36 +08:00
2026-10-14 21:51:19 +08:00
2026-10-14 21:51:19 +08:00
2026-10-14 19:48:30 +08:00
2026-10-13 18:05:20 +08:00
2026-10-13 15:12:17 +08:00
2026-10-13 23:47:55 +08:00
2026-10-12 23:24:24 +08:00
2026-10-14 16:00:00 +08:00
2026-10-13 23:33:54 +08:00
2026-10-11 06:30:56 +08:00
2026-10-14 08:46:50 +08:00
2026-10-13 16:08:41 +08:00
2026-10-14 06:20:22 +08:00
2026-10-14 23:15:04 +08:00
2026-10-13 23:49:33 +08:00
2026-10-13 19:30:50 +08:00
2026-10-13 12:06:41 +08:00
2026-10-12 22:53:30 +08:00
2026-10-13 16:08:41 +08:00
2026-10-11 05:17:10 +08:00
2026-10-12 14:56:51 +08:00
2026-10-14 08:46:50 +08:00
2026-10-09 19:29:31 -07:00
2026-10-14 16:10:46 +08:00
2026-10-14 08:12:33 +08:00
2026-10-14 13:58:15 +08:00
2026-10-12 15:18:03 +08:00