SFCs with both script blocks lose the regular script
|
|
| Severity |
high |
| Kind |
logic-bug |
| Location |
src/parsers/vue/vue-parser.ts → extractScript |
| 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
SFCs with both script blocks lose the regular script
highlogic-bugsrc/parsers/vue/vue-parser.ts→extractScriptsrc/parsers/vuef-0d7bbaFailure 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-0d7bbainsrc/parsers/vue/vue-parser.ts".If this is not a real defect, close the issue with the
false-positivelabel — dev-clirecords 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· scan2026-08-15T06-35-41· fingerprint0d7bbab9610b