Skip to content

[high] SFCs with both script blocks lose the regular script #8

Description

@gingercakedev-bot

SFCs with both script blocks lose the regular script

Severity high
Kind logic-bug
Location src/parsers/vue/vue-parser.tsextractScript
Module src/parsers/vue
Finding ID f-0d7bba

Failure scenario

For a valid Vue SFC containing both <script> and <script setup>, lines 250-255 return only the setup block. Imports, exports, classes, and functions declared in the regular block are never passed to TypeScriptParser, so the parsed result silently omits them.

Suggested test

Parse an SFC whose regular <script> exports a helper and whose <script setup> imports a component; assert that output contains symbols and imports from both blocks.


How to work this issue

Open a Claude Code session in this repo and say
"work the dev-cli finding f-0d7bba in src/parsers/vue/vue-parser.ts".

If this is not a real defect, close the issue with the false-positive label — dev-cli
records the fingerprint and will never raise it again. Closing it without that label marks the
finding fixed instead.

Raised by dev-cli · repo codemap-cli · scan 2026-08-15T06-35-41 · fingerprint 0d7bbab9610b

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-cliRaised by dev-cli automated scan

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions