Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better path handling for TurboSnap #392

Merged
merged 4 commits into from
Sep 17, 2021
Merged

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Aug 25, 2021

Instead of attempting funky string manipulation, this uses bona fide path operations on paths found in the webpack stats file. It also simplifies things by using the git repository root as the "base" for all paths and not prefixing relative path with ./ anymore (making it consistent with path methods and git output).

I've added extensive tests for various cases such as absolute paths and importing files across workspaces.

🚀 This has been prereleased as chromatic@5.10.0-canary.4 (chromatic@canary).

@ghengeveld ghengeveld requested a review from tmeasday August 25, 2021 12:04
@ghengeveld ghengeveld merged commit a93912b into next Sep 17, 2021
@ghengeveld ghengeveld deleted the turbosnap-absolute-paths branch September 17, 2021 09:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant