Malte Ubl and Claude Opus 5.5
f793009ee5
Unwrap tsc's interop helpers around builtin modules in packages
...
tsc wraps every CommonJS import in its helpers: `const events_1 =
__importDefault(require("events"))`, `const path =
__importStar(require("path"))`. cjs-tsc-interop.ts reads such bindings of
program modules as plain require bindings, so the helper declarations go
dead, but a builtin module is not a program module: its binding kept the
helpers live, and their probe of the module's top-level `this`
(`(this && this.__importDefault) ||`) failed at load ("property access
through top-level 'this'"). That is the shape of hundreds of tsc-compiled
files in a typical dependency tree.
A builtin carries no `__esModule`, so `events_1.default` is the module and
the namespace copy reads the module's members. When every reference has
that form, a package-file stage now respells the binding as the plain
require() of the builtin and `x.default` as `x`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-21 08:11:47 -07:00
..
2026-10-18 15:11:32 -07:00
2026-10-21 08:11:47 -07:00
2026-10-20 00:21:45 -05:00
2026-10-20 00:21:45 -05:00
2026-10-13 12:36:06 -05:00
2026-10-13 07:55:53 -05:00
2026-10-17 12:16:58 -07:00
2026-10-13 10:26:49 -05:00
2026-10-14 21:17:46 -05:00
2026-10-12 12:25:30 -05:00
2026-10-13 12:36:06 -05:00
2026-10-15 06:12:23 -07:00
2026-10-13 12:36:06 -05:00
2026-10-18 15:11:32 -07:00
2026-10-20 17:56:44 -05:00
2026-10-13 12:36:06 -05:00
2026-10-20 19:17:05 -05:00
2026-10-20 17:56:44 -05:00
2026-10-12 12:25:30 -05:00
2026-10-20 17:56:44 -05:00
2026-10-12 12:25:30 -05:00
2026-10-17 19:11:33 -05:00
2026-10-12 12:25:30 -05:00
2026-10-12 12:25:30 -05:00
2026-10-11 13:08:08 -07:00
2026-10-16 06:54:44 -07:00
2026-10-13 12:36:06 -05:00
2026-10-12 12:25:30 -05:00
2026-10-12 12:25:30 -05:00
2026-10-12 12:25:30 -05:00
2026-10-18 15:11:32 -07:00
2026-10-12 12:25:30 -05:00
2026-10-14 08:34:53 -05:00
2026-10-15 21:58:33 -05:00
2026-10-18 15:11:32 -07:00
2026-10-15 07:59:19 -05:00
2026-10-18 15:19:39 -07:00
2026-10-16 06:59:43 -07:00
2026-10-13 12:36:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-17 12:08:06 -07:00
2026-10-15 05:07:10 -07:00
2026-10-16 01:10:45 -05:00
2026-10-13 12:36:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-18 15:11:32 -07:00
2026-10-17 18:44:30 -05:00
2026-10-19 05:34:01 -07:00
2026-10-12 12:25:30 -05:00
2026-10-20 16:42:01 -07:00
2026-10-17 11:10:43 -07:00
2026-10-16 04:45:45 -05:00
2026-10-18 15:11:32 -07:00
2026-10-17 12:28:03 -07:00
2026-10-18 15:11:32 -07:00
2026-10-20 17:56:44 -05:00
2026-10-19 07:55:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-12 23:05:43 -05:00
2026-10-18 07:31:43 -07:00
2026-10-18 07:31:43 -07:00
2026-10-20 17:56:44 -05:00
2026-10-12 12:25:30 -05:00
2026-10-20 17:56:44 -05:00
2026-10-20 00:21:45 -05:00
2026-10-16 10:10:02 -05:00
2026-10-21 01:08:13 -05:00
2026-10-21 08:40:46 -05:00
2026-10-14 21:09:51 -05:00
2026-10-20 01:21:06 -07:00
2026-10-14 09:58:18 -05:00
2026-10-12 12:25:30 -05:00
2026-10-16 20:13:00 -05:00
2026-10-16 05:12:23 -05:00
2026-10-13 20:30:01 -05:00
2026-10-17 16:00:54 -05:00
2026-10-12 12:25:30 -05:00
2026-10-12 12:25:30 -05:00
2026-10-15 13:39:03 -05:00
2026-10-20 17:56:44 -05:00
2026-10-13 20:26:38 -05:00
2026-10-18 15:11:32 -07:00
2026-10-13 12:36:06 -05:00
2026-10-13 21:24:38 -05:00
2026-10-16 14:02:02 -07:00
2026-10-12 12:25:30 -05:00
2026-10-12 12:25:30 -05:00
2026-10-17 13:32:48 -07:00
2026-10-12 12:25:30 -05:00
2026-10-13 12:36:06 -05:00
2026-10-13 12:36:06 -05:00
2026-10-20 11:00:03 -05:00
2026-10-19 23:38:15 -05:00
2026-10-13 18:51:09 -05:00
2026-10-18 15:19:39 -07:00
2026-10-18 15:19:39 -07:00
2026-10-14 21:28:04 -05:00