Compat with Astro < 1.5 (#5082)

* Compat with Astro < 1.5

* Adding a changeset
This commit is contained in:
Matthew Phillips 2022-10-13 16:10:48 -04:00 committed by GitHub
parent 35458e6880
commit 5fb7c9383a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/tailwind': patch
---
Make Tailwind integration compatible with Astro < 1.5

View file

@ -103,7 +103,7 @@ export default function tailwindIntegration(options?: TailwindOptions): AstroInt
); );
} }
if (userConfig?.filePath) { if (addWatchFile && userConfig?.filePath) {
addWatchFile(userConfig.filePath); addWatchFile(userConfig.filePath);
} }