Skip to content

Using JSON.stringify for object comparison is inefficient and unreliable. Consider implementing a proper equals method on SourceMapItem or using a more efficient deduplication strategy like a Set with a custom key. #378

@kenherring

Description

@kenherring

Using JSON.stringify for object comparison is inefficient and unreliable. Consider implementing a proper equals method on SourceMapItem or using a more efficient deduplication strategy like a Set with a custom key.

				const key = getSourceMapItemKey(smi)
				if (!seen.has(key)) {
					debugLines.push(smi)
					seen.add(key)

Originally posted by @Copilot in #377 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions