tailwindcss/packages/@tailwindcss-node/src
Robin Malfait bcf70990a7
Improve debug logs (#15303)
This PR improves the debug logs for the `@tailwindcss/postcss`
integration. It uses custom instrumentation to provide a nested but
detailed overview of where time is spent during the build process.

The updated logs look like this:
```
[0.15ms] [@tailwindcss/postcss] src/app/geistsans_9fc57718.module.css
[0.14ms]   ↳ Quick bail check
[0.02ms] [@tailwindcss/postcss] src/app/geistsans_9fc57718.module.css
[0.01ms]   ↳ Quick bail check

[0.03ms] [@tailwindcss/postcss] src/app/geistmono_b9f59162.module.css
[0.02ms]   ↳ Quick bail check
[0.12ms] [@tailwindcss/postcss] src/app/geistmono_b9f59162.module.css
[0.11ms]   ↳ Quick bail check

[42.09ms] [@tailwindcss/postcss] src/app/globals.css
[ 0.01ms]   ↳ Quick bail check
[12.12ms]   ↳ Setup compiler
[ 0.11ms]     ↳ PostCSS AST -> Tailwind CSS AST
[11.99ms]     ↳ Create compiler
[ 0.07ms]   ↳ Register full rebuild paths
[ 0.06ms]   ↳ Setup scanner
[ 7.51ms]   ↳ Scan for candidates
[ 5.86ms]   ↳ Register dependency messages
[ 5.88ms]   ↳ Build utilities
[ 8.34ms]   ↳ Optimization
[ 0.23ms]     ↳ AST -> CSS
[ 4.20ms]     ↳ Lightning CSS
[ 3.89ms]     ↳ CSS -> PostCSS AST
[ 1.97ms]   ↳ Update PostCSS AST
```
2024-12-11 15:27:20 +01:00
..
compile.ts Use AST transformations in @tailwindcss/postcss (#15297) 2024-12-04 15:43:59 +01:00
env.ts Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00: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 Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
index.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
instrumentation.test.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
instrumentation.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
normalize-path.ts Resolve @import in core (#14446) 2024-09-23 17:05:55 +02:00
require-cache.cts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
urls.test.ts Update changelog and add test for absolute url rebasing (#15282) 2024-12-03 13:48:52 +01:00
urls.ts Vite: Don't rebase absolute url()s (#15275) 2024-12-02 14:23:38 -05:00