From 5fb7c9383abf6ccdabdb96b682f683369a8e11fe Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 13 Oct 2022 16:10:48 -0400 Subject: [PATCH] Compat with Astro < 1.5 (#5082) * Compat with Astro < 1.5 * Adding a changeset --- .changeset/tender-cars-wait.md | 5 +++++ packages/integrations/tailwind/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tender-cars-wait.md diff --git a/.changeset/tender-cars-wait.md b/.changeset/tender-cars-wait.md new file mode 100644 index 000000000000..9308fbf07a01 --- /dev/null +++ b/.changeset/tender-cars-wait.md @@ -0,0 +1,5 @@ +--- +'@astrojs/tailwind': patch +--- + +Make Tailwind integration compatible with Astro < 1.5 diff --git a/packages/integrations/tailwind/src/index.ts b/packages/integrations/tailwind/src/index.ts index 2f1b68e28fc0..bc4d820d5bd6 100644 --- a/packages/integrations/tailwind/src/index.ts +++ b/packages/integrations/tailwind/src/index.ts @@ -103,7 +103,7 @@ export default function tailwindIntegration(options?: TailwindOptions): AstroInt ); } - if (userConfig?.filePath) { + if (addWatchFile && userConfig?.filePath) { addWatchFile(userConfig.filePath); }