Skip to content

bug(cli): --remove-comments hangs on large minified files with extremely long lines #975

@yamadashy

Description

@yamadashy

Summary

When using --remove-comments option, repomix hangs indefinitely on large minified JavaScript files with extremely long lines.

Problem

The strip-comments library has performance issues (likely O(n²) or worse) when processing files with very long lines. For example, a minified JS file (~3MB with lines up to 1.2MB) causes the process to hang.

Related

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions