No description
This PR fixes an issue on Windows where the `@tailwindcss/cli` with the `--watch` flag crashes when using a `@source` with a base path that doesn't exist on disk. This happens when setting up the `@parce/watcher` for directories that don't exist. This PR essentially filters out these directories that don't exist on disk to prevent the crash. It might be that if you add the folder _later_, while the watcher is already watching, that you have to restart the `@tailwindcss/cli` (or save the `index.css` (the file that contains the `@source` directives), this also recreates watchers from scratch). If this issue causes problems for `@tailwindcss/postcss` and `@tailwindcss/vite` in the future as well, then we can move this logic back to Oxide. We do maintain the incoming `@source` files as best as possible without resolving to absolute paths. Back when we did resolve them, if that process error'd we just never returned the glob. The root cause is still referencing folders that don't exist. Fixes: #20231 ## Test plan 1. Added a failing test, that did fail on Windows 2. Once fixed, all tests should pass [ci-all] --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| crates | ||
| integrations | ||
| packages | ||
| patches | ||
| playgrounds | ||
| scripts | ||
| .gitignore | ||
| .prettierignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| rust-toolchain.toml | ||
| turbo.json | ||
| vitest.config.ts | ||
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.