Skip to content

fix: recognize .mjs and .ejs files in AST extractor - #372

Closed
jakeefr wants to merge 1 commit into
Graphify-Labs:v4from
jakeefr:fix/mjs-ejs-extensions
Closed

jakeefr wants to merge 1 commit into
Graphify-Labs:v4from
jakeefr:fix/mjs-ejs-extensions

Conversation

@jakeefr

@jakeefr jakeefr commented Apr 15, 2026

Copy link
Copy Markdown

Fixes #365. Added .mjs and .ejs file extensions to the AST extractor so modern ES module files and EJS templates are properly parsed.

  • .mjs added to CODE_EXTENSIONS, _DISPATCH (mapped to extract_js), and collect_files _EXTENSIONS — treated identically to .js
  • .ejs added to DOC_EXTENSIONS for semantic extraction processing

I maintain PRISM, a post-session diagnostics tool for Claude Code — session health scoring and CLAUDE.md adherence analysis. Both tools help developers get deeper signal from their codebases and sessions.

Add .mjs to CODE_EXTENSIONS, the tree-sitter _DISPATCH dict, and
the collect_files _EXTENSIONS set so ES module files are parsed
identically to .js files.

Add .ejs to DOC_EXTENSIONS so EJS templates are processed via
the semantic extraction pipeline.

Fixes Graphify-Labs#365
@safishamsi

Copy link
Copy Markdown
Member

Implemented in v0.4.15. .mjs and .ejs support added to the AST extractor. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.mjs and .ejs files not recognized by AST extractor

2 participants