Conversation

RobinMalfait

This PR fixes an issue when running the upgrade tool and if any of the CSS files has an import that looks like this:

@import "tailwindcss" source("…");

This was trying to resolve tailwindcss" source("… instead of tailwindcss.

This PR fixes that by fixing the regex we used. Made the quantifier lazy to match as few characters as possible and thus only matching tailwindcss in this case.

Test plan

  1. Ran it locally on a project

Before:

image

After:

image

@RobinMalfaitRobinMalfait requested a review from a team as a code owner May 9, 2025 20:00
@RobinMalfaitRobinMalfait enabled auto-merge (squash) May 9, 2025 20:01
@RobinMalfaitRobinMalfait merged commit 3386049 into main May 9, 2025
7 checks passed
@RobinMalfaitRobinMalfait deleted the fix/strange-upgrade-error branch May 9, 2025 20:04
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.