+Browser-safe entry point with zero ts-morph dependency. Re-exports only lightweight utilities: file-filter (`isExcludedDir`, `buildDirectoryTree`, `filterExcludedPaths`, `pickDefaultDirs`, `filterBySelectedDirs`, `normalizeRelativePath`), types (`DirEntry`, `FileEntry`), scanner (`filterAnalyzableFiles`, `isAnalyzableFile`), scoring (`computeScore`), report (`buildMarkdownReport`, `buildHtmlReport`), report-parser (`parseReportSummary`), presets, and config types. The web app imports from `@inspectorepo/core/browser` for initial load to keep the bundle small. The heavy `analyzeCodebase` function (which depends on ts-morph) is lazy-loaded via `import('@inspectorepo/core')` only when the user clicks Analyze.
0 commit comments