Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure module dependencies for value null, is an empty Set #10877

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

RobinMalfait
Copy link
Contributor

@RobinMalfait RobinMalfait commented Mar 27, 2023

This PR fixes an issue where resolving the module dependencies of a path crashes if the path is null.

This happens in the CLI where we don't have a guaranteed path for the config file. This can happen in practice if you use:

npx tailwindcss --content ./index.html --output ./output.css

... and if you don't have a tailwind.config.{js,ts,cjs,...} in the current directory.

This happens in the CLI where we don't have a guaranteed `path` for the
config file. This can happen in practice if you use:

```console
npx tailwindcss --content ./index.html -o ./output.css
```

... and if you don't have a `tailwind.config.{js,ts,cjs,...}` in the
current directory.
@RobinMalfait RobinMalfait changed the title Ensure module dependencies for null are an empty Set Ensure module dependencies for value null, is an empty Set Mar 27, 2023
@RobinMalfait RobinMalfait changed the title Ensure module dependencies for value null, is an empty Set Ensure module dependencies for value null, is an empty Set Mar 27, 2023
@RobinMalfait RobinMalfait force-pushed the fix/improve-module-dependencies branch from 7b1b03a to 31de94f Compare March 27, 2023 17:03
@RobinMalfait RobinMalfait merged commit 8e85a86 into master Mar 27, 2023
@RobinMalfait RobinMalfait deleted the fix/improve-module-dependencies branch March 27, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant