From 0b3baa00ba8c6936d66824bf5526951a41cc69c6 Mon Sep 17 00:00:00 2001 From: Pavan Shinde Date: Wed, 6 May 2026 09:03:42 +0530 Subject: [PATCH 1/2] docs(postcss): add missing node:path import in base option example --- packages/@tailwindcss-postcss/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@tailwindcss-postcss/README.md b/packages/@tailwindcss-postcss/README.md index 3facf28875f1..7b32d54733b3 100644 --- a/packages/@tailwindcss-postcss/README.md +++ b/packages/@tailwindcss-postcss/README.md @@ -44,6 +44,7 @@ If you're interested in contributing to Tailwind CSS, please read our [contribut You can use the `base` option (defaults to the current working directory) to change the directory in which the plugin searches for source files: ```js +import path from 'node:path' import tailwindcss from '@tailwindcss/postcss' export default { From 4e6b28d69742be1a467551a954a539731ac44e5c Mon Sep 17 00:00:00 2001 From: Pavan Shinde Date: Wed, 6 May 2026 09:31:40 +0530 Subject: [PATCH 2/2] docs(postcss): make base option example ESM-safe --- packages/@tailwindcss-postcss/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@tailwindcss-postcss/README.md b/packages/@tailwindcss-postcss/README.md index 7b32d54733b3..d592033317da 100644 --- a/packages/@tailwindcss-postcss/README.md +++ b/packages/@tailwindcss-postcss/README.md @@ -44,9 +44,12 @@ If you're interested in contributing to Tailwind CSS, please read our [contribut You can use the `base` option (defaults to the current working directory) to change the directory in which the plugin searches for source files: ```js +import { fileURLToPath } from 'node:url' import path from 'node:path' import tailwindcss from '@tailwindcss/postcss' +const __dirname = path.dirname(fileURLToPath(import.meta.url)) + export default { plugins: [ tailwindcss({