Skip to content

Skip RBS rewriter when a file doesn't contain any RBS syntax #916

@amomchilov

Description

@amomchilov

Before we waste the time parsing with Prism, running our RBS rewriting visitor, etc., we can do a quick scan through the file to see if it contains any RBS syntax at all. If not, we can just return it as it was.

This was already implemented into Tapioca, but would better live here in Spoom directly: Shopify/tapioca#2616

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions