Skip to content

Commit

Permalink
Update packages/@tailwindcss-upgrade/src/migrate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan authored and philipp-spiess committed Oct 24, 2024
1 parent 711016a commit 9ece083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@tailwindcss-upgrade/src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export async function analyze(stylesheets: Stylesheet[]) {
// Resolve the import to a file path
let resolvedPath: string | false = false
try {
// We first try to resolve the file as relative to the current file,
// this is mimicking the default behavior of postcss-import and thus
// of v3.
// We first try to resolve the file as relative to the current file
// to mimic the behavior of `postcss-import` since that's what was
// used to resolve imports in Tailwind CSS v3.
if (id[0] !== '.') {
try {
resolvedPath = resolveCssId(`./${id}`, basePath)
Expand Down

0 comments on commit 9ece083

Please sign in to comment.