Dashboardpublishpublish CommonJS test ESM

publish CommonJS test ESM

Category: preference
Confidence: 1.00
ID: 01a0895a-0c06-7666-bdaa-81734b7d747f
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 1INV6ushrYVDng4Os
Created: 2026-09-10 03:26:15
Updated: 2026-09-10 03:26:15

Content

Use CommonJS (require/module.exports) in Sentry Publish source files and ES Modules (import/export) in tests; prefer named CommonJS exports when exposing multiple values. Chose this established split over converting source to ESM because the repository’s Node 24 runtime, entry points, and test mocking conventions depend on it.

Move to: