Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Optimize images-no-direct-imports rule #247

Merged
merged 1 commit into from
Apr 25, 2019
Merged

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Apr 24, 2019

Check the extension of the import before trying to resolve it. This
allows us to escape early and not trigger trying to resolve the path
(which is expensive compared to string comparisons) if the import isn't
for an image.

@BPScott BPScott requested a review from cartogram April 24, 2019 14:30
Check the extension of the import before trying to resolve it. This
allows us to escape early and not trigger trying to resolve the path
(which is expensive compared to string comparisons) if the import isn't
for an image.
Copy link
Contributor

@cartogram cartogram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@BPScott BPScott merged commit f0cd1a5 into master Apr 25, 2019
@BPScott BPScott deleted the optimize-no-direct-imports branch April 25, 2019 06:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants