Skip to content

detect: .vue files not recognized as code (Vue SFC script blocks ignored by AST extraction) #254

Closed

Description

@Joseph94m

Problem

.vue files are not included in CODE_EXTENSIONS in detect.py, so graphify completely skips Vue Single File Components. This means any project using Vue, Nuxt, Svelte (.svelte), or Astro (.astro) has its entire UI layer invisible to the graph.

The <script setup lang="ts"> block inside .vue files is standard TypeScript that tree-sitter can already parse if extracted from the SFC wrapper.

Current supported extensions

['.c', '.cc', '.cpp', '.cs', '.cxx', '.ex', '.exs', '.go', '.h', '.hpp',
 '.java', '.jl', '.js', '.jsx', '.kt', '.kts', '.lua', '.m', '.mm', '.php',
 '.ps1', '.py', '.rb', '.rs', '.scala', '.swift', '.toc', '.ts', '.tsx', '.zig']

Activity

  1. added a commit that references this issue on Apr 12, 2026
  2. safishamsi commented on Apr 12, 2026

    @safishamsi
    Member

    Fixed in v0.4.3. .vue and .svelte added to CODE_EXTENSIONS (detect.py) and to the AST dispatch table (extract.py) using the JS/TS extractor. Script blocks inside SFCs will be extracted; template blocks are skipped by the parser gracefully.

  3. added a commit that references this issue on Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions