You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Critical: Node.js ESM named imports from CommonJS**: Fixed build output to ensure Node.js ESM can properly detect named exports from CommonJS modules
13
+
- Previously, esbuild's minified export pattern placed `module.exports` before variable definitions, causing "Cannot access before initialization" errors
14
+
- Build script now uses `@babel/parser` + `magic-string` for safe AST parsing and transformation
15
+
- Exports are now correctly placed at end of files after all variable definitions
16
+
- Enables proper ESM named imports: `import { getDefaultLogger, Logger } from '@socketsecurity/lib/logger'`
17
+
- Fixes socket-cli issue where named imports were failing with obscure initialization errors
0 commit comments