Claude Bot
18752929dc
Remove __esModule workaround for Node.js compatibility
...
This is a breaking change that removes Bun's special handling of the __esModule annotation in CommonJS modules. The workaround was causing more issues than it solved and prevented full Node.js compatibility.
Key changes:
- CommonJS modules now always export module.exports as the default export
- __esModule is no longer treated specially and won't be automatically added
- Bundler no longer adds or filters __esModule properties
- Runtime helpers simplified to remove __esModule logic
This fixes several compatibility issues:
- Fixes #4506 : CommonJS module.exports functions are now directly callable
- Fixes #6388 : CLI tools work correctly without terminal crashes
- Fixes #7465 : Default exports from packages like concurrently work properly
- May fix #3881 : ESM/CommonJS edge cases with Vite
- May fix #4677 : Module resolution for reflect-metadata
Breaking change: Code that relied on Bun's __esModule workaround behavior will need to be updated. The new behavior matches Node.js more closely.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-19 20:33:30 +00:00
..
2025-09-19 02:06:02 -07:00
2025-07-22 17:51:38 -07:00
2025-09-01 02:35:55 -07:00
2025-09-09 23:29:39 -07:00
2025-08-11 20:19:34 -07:00
2025-09-17 15:37:09 -07:00
2025-07-22 17:51:38 -07:00
2025-09-19 20:33:30 +00:00
2025-09-19 20:33:30 +00:00
2025-09-19 02:06:02 -07:00
2025-09-19 02:06:02 -07:00
2025-09-09 20:41:10 -07:00
2025-09-14 04:14:48 -07:00
2025-09-12 23:44:10 -07:00
2025-09-15 14:24:03 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-28 17:34:35 -07:00
2025-09-19 02:06:02 -07:00
2025-07-17 03:13:48 -07:00
2025-09-19 03:39:25 -07:00
2025-09-14 02:27:53 -07:00
2025-09-09 20:41:10 -07:00
2025-09-19 20:33:30 +00:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-09-07 17:53:00 -07:00
2025-07-31 22:07:17 -07:00
2025-08-11 20:19:34 -07:00
2025-09-19 02:06:02 -07:00
2025-09-19 02:06:02 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-07-23 17:10:58 -07:00
2025-09-14 04:14:48 -07:00
2025-09-17 15:37:09 -07:00
2025-09-17 08:46:23 -07:00
2025-09-09 23:31:07 -07:00
2025-08-26 12:50:25 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-09-11 17:50:18 -07:00
2025-06-04 19:41:26 -07:00
2025-08-11 20:19:34 -07:00
2025-09-19 02:06:02 -07:00
2025-08-23 06:55:30 -07:00
2025-07-29 19:35:46 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-07-22 17:51:38 -07:00
2025-09-03 18:57:39 -07:00
2025-07-22 17:51:38 -07:00
2025-07-20 23:04:17 -07:00
2025-09-19 02:06:02 -07:00
2025-09-19 02:06:02 -07:00
2025-08-26 12:50:25 -07:00
2025-06-12 14:20:28 -07:00
2025-09-18 19:37:24 -07:00
2025-07-21 13:26:47 -07:00
2025-09-15 23:36:48 -07:00
2025-09-13 16:15:03 -07:00
2025-09-03 18:57:39 -07:00
2025-07-31 00:56:50 -07:00
2025-08-11 20:19:34 -07:00
2025-09-04 18:14:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-09-19 02:06:02 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-28 00:13:17 -07:00
2025-08-22 23:04:58 -07:00
2025-08-14 18:03:26 -07:00
2025-08-27 06:39:11 -07:00
2025-08-21 15:28:15 -07:00
2025-09-19 02:06:02 -07:00
2025-08-23 06:55:30 -07:00
2025-06-03 23:51:03 -07:00
2025-09-11 19:24:43 -07:00
2025-08-26 12:50:25 -07:00
2025-09-19 02:38:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-09-09 20:41:10 -07:00
2025-09-04 18:06:47 -07:00
2025-07-09 00:19:57 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-23 06:55:30 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-08-25 17:37:12 -07:00
2025-09-09 20:41:10 -07:00
2025-09-11 23:29:53 -07:00
2025-09-09 20:41:10 -07:00
2025-07-22 17:51:38 -07:00
2025-08-14 21:12:22 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-07-22 17:51:38 -07:00
2025-09-03 15:40:44 -07:00
2025-09-03 15:40:44 -07:00
2025-07-22 17:51:38 -07:00
2025-09-14 04:14:48 -07:00
2025-09-19 02:06:02 -07:00
2025-09-09 21:42:01 -07:00
2025-07-22 17:51:38 -07:00
2025-09-12 23:59:24 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-09-19 20:33:30 +00:00
2025-09-09 23:29:39 -07:00
2025-09-03 15:40:44 -07:00
2025-07-21 13:26:47 -07:00
2025-09-04 18:17:14 -07:00
2025-07-21 13:26:47 -07:00
2025-08-31 18:27:51 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-25 12:38:06 -07:00
2025-09-19 03:39:25 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-09-19 02:06:02 -07:00
2025-07-21 13:26:47 -07:00
2025-08-11 20:19:34 -07:00
2025-07-21 13:26:47 -07:00
2025-08-26 12:50:25 -07:00
2025-08-26 12:50:25 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 20:19:34 -07:00
2025-07-20 23:04:17 -07:00
2025-08-23 06:55:30 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 18:57:39 -07:00