tailwindcss/packages/@tailwindcss-node/src
Robin Malfait 6b54dd8630
Fix internal source map warnings (#19788)
This PR fixes an internal source map warning when running tests. To
solve this, we encode the `=` as `\x3d` instead. I'm not 100% sure if
Vitest was hanging on this but it solved the following warning:

```
 ✓  @tailwindcss/cli  src/utils/format-ns.test.ts (21 tests) 3ms
11:43:59 AM [vite] (ssr) Failed to load source map for /Users/robin/github.com/tailwindlabs/tailwindcss/packages/@tailwindcss-node/dist/index.mjs.
Error: An error occurred while trying to read the map file at ${i}
Error: ENOENT: no such file or directory, open '/Users/robin/github.com/tailwindlabs/tailwindcss/packages/@tailwindcss-node/dist/${i}'
    at open (node:internal/fs/promises:634:25)
    at Object.readFile (node:internal/fs/promises:1238:14)
    at extractSourcemapFromFile (file:///Users/robin/github.com/tailwindlabs/tailwindcss/node_modules/.pnpm/vite@7.0.0_@types+node@20.19.1_jiti@2.6.1_lightningcss@1.31.1_patch_hash=tzyxy3asfxcqc7ihroou_7epcep7uhfc7zidzdmxzgvdzwi/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:8349:65)
    at loadAndTransform (file:///Users/robin/github.com/tailwindlabs/tailwindcss/node_modules/.pnpm/vite@7.0.0_@types+node@20.19.1_jiti@2.6.1_lightningcss@1.31.1_patch_hash=tzyxy3asfxcqc7ihroou_7epcep7uhfc7zidzdmxzgvdzwi/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:26405:22)
```

## Test plan

1. Existing tests pass
2. Added a failing test to ensure that the source maps are emitted
correctly
2026-03-12 12:21:00 +01:00
..
compile.ts Don't inline all env vars in Standalone CLI (#19391) 2025-12-08 11:23:20 -05: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 Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
get-module-dependencies.ts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
index.cts Add support for source maps (#17775) 2025-05-08 16:29:49 -04:00
index.ts Add support for source maps (#17775) 2025-05-08 16:29:49 -04:00
instrumentation.test.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
instrumentation.ts Ensure Symbol.dispose and Symbol.asyncDispose are available (#15404) 2024-12-16 14:17:44 +01: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
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 Generalize the walk implementation (#19126) 2025-10-15 21:28:12 +02:00