Kaoru0822 and Claude Opus 5.5
6ac5c36503
fix(javascript): follow bundler namespace interop for Electron APIs ( #1827 )
...
* fix(javascript): follow bundler namespace interop for Electron APIs
Rolldown/tsdown emit `let electron = require("electron"); electron =
__toESM(electron);` and esbuild/tsc emit `__toESM(require("electron"))`
or `__importStar(require("electron"))` for namespace imports. The
reassignment or the helper call hid the Electron origin, so bundled
main processes reported zero BrowserWindows and preloads.
Locally declared, never reassigned interop helpers recognized by name
now pass the module through, and a binding's rewrap of its own value is
not treated as a reassignment. Other writes stay unresolved.
Fixes #1802
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* fix(javascript): require emitted interop helper definitions
Only trust an interop helper name when it has a single program-scope
function definition, and state that helper bodies are not evaluated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-11 06:28:19 -07:00
..
2026-10-09 20:18:52 +08:00
2026-10-10 01:54:42 +08:00
2026-10-07 17:16:58 +08:00
2026-10-09 20:18:52 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 10:31:08 +08:00
2026-10-11 06:28:19 -07:00
2026-10-11 10:31:08 +08:00
2026-10-11 00:03:20 +08:00
2026-10-11 08:27:46 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 08:27:46 +08:00
2026-10-08 13:24:24 +08:00
2026-10-08 13:24:24 +08:00
2026-10-11 19:20:00 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 03:14:37 -07:00
2026-10-10 14:02:02 +08:00
2026-10-10 13:21:13 +08:00
2026-10-10 03:52:13 +08:00
2026-10-10 14:02:02 +08:00
2026-10-10 15:09:18 +08:00
2026-10-11 07:22:50 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-10 06:34:21 +08:00
2026-10-10 06:34:21 +08:00
2026-10-11 04:43:02 +08:00
2026-10-11 00:03:20 +08:00
2026-10-10 02:07:30 +08:00
2026-10-07 17:57:33 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 09:25:32 +08:00
2026-10-11 06:28:19 -07:00
2026-10-09 18:30:31 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 18:30:31 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 08:27:46 +08:00
2026-10-07 17:16:58 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 21:04:05 -07:00
2026-10-11 18:39:49 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 02:21:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-11 01:54:36 +08:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 21:04:05 -07:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 17:14:47 +08:00
2026-10-08 04:03:23 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 22:46:08 +08:00
2026-10-11 19:16:32 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 09:46:53 +08:00
2026-10-11 19:16:32 +08:00
2026-10-11 08:20:39 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 23:53:41 +08:00
2026-10-07 19:08:45 +08:00
2026-10-11 17:54:25 +08:00
2026-10-09 22:46:09 +08:00
2026-10-11 19:16:32 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 19:16:32 +08:00
2026-10-11 06:28:19 -07:00
2026-10-10 01:45:01 +08:00
2026-10-11 08:27:46 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 15:46:24 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 03:20:05 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 01:45:01 +08:00
2026-10-10 01:45:01 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:05:35 +08:00
2026-10-10 00:13:34 -07:00
2026-10-07 17:16:58 +08:00
2026-10-11 04:05:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 13:47:15 +08:00
2026-10-11 18:10:13 +08:00
2026-10-10 06:53:42 +08:00
2026-10-10 07:40:25 +08:00
2026-10-10 14:04:31 +08:00
2026-10-11 09:46:53 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 19:16:32 +08:00
2026-10-10 01:45:01 +08:00
2026-10-11 09:25:32 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 03:36:35 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:53:50 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 03:52:35 +08:00
2026-10-11 06:28:19 -07:00
2026-10-09 20:18:52 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 20:53:47 +08:00
2026-10-11 13:20:16 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 19:16:32 +08:00
2026-10-07 17:16:58 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 19:16:32 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 06:38:47 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 08:27:46 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 18:19:39 +08:00
2026-10-11 01:36:12 +08:00
2026-10-10 05:56:01 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 01:36:12 +08:00
2026-10-10 10:24:38 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 08:27:46 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-10 05:56:01 +08:00