tailwindcss/packages/@tailwindcss-node/src
Robin Malfait 51f0760d29
Fix crash when using @tailwindcss/vite using deno v2.8.x (#20245)
This PR might fix an issue where resolvers don't work on deno v2.8.x
(they do work on deno v2.7.x) when using `@tailwindcss/vite`.

This happens when the `context.parentURL` is not actually a URL at all,
and therefore the `new URL(…)` just crashes. This PR will fallback to
the incoming result for files that are not passed proper URLs.

Fixes: #20232

## Test plan

1. Existing tests pass
2. Can't seem to figure out how to test this in the reproduction issue
without publishing first. So going to merge this and test the insiders
version instead.
2026-06-16 16:03:27 +02:00
..
compile.ts format 2026-04-20 13:12:24 +02:00
env.ts fix: allow process.env.DEBUG to be a boolean in @tailwindcss/node (#18485) 2025-07-11 11:51:50 -04:00
esm-cache.loader.mts Fix crash when using @tailwindcss/vite using deno v2.8.x (#20245) 2026-06-16 16:03:27 +02:00
get-module-dependencies.ts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
index.cts fix(node): prefer Module#registerHooks over Module#register (#20028) 2026-05-11 14:25:28 +00:00
index.ts move localRequire to else branch 2026-05-12 11:19:48 +02:00
instrumentation.test.ts duration must be at least 500ms 2026-05-26 23:34:51 +02:00
instrumentation.ts Improve internal instrumentation module (#20119) 2026-05-26 23:20:39 +02:00
normalize-path.ts Resolve @import in core (#14446) 2024-09-23 17:05:55 +02:00
optimize.ts Suppress warnings when using :deep, :slotted and :global (#19094) 2025-10-09 11:58:51 +02:00
require-cache.cts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
require-cache.ts Cleanup noisy test output (#20015) 2026-05-06 11:10:17 +02:00
source-maps.test.ts Fix internal source map warnings (#19788) 2026-03-12 12:21:00 +01:00
source-maps.ts Fix internal source map warnings (#19788) 2026-03-12 12:21:00 +01:00
urls.test.ts Vite: Don't rebase urls that appear to be aliases (#16078) 2025-01-31 15:23:32 +01:00
urls.ts Cleanup inconsistencies related to (regex) escapes (#19804) 2026-03-15 22:04:58 +01:00