From 1864142a05343144076ff8684da36f87e920c373 Mon Sep 17 00:00:00 2001 From: leaysgur <6259812+leaysgur@users.noreply.github.com> Date: Thu, 8 Jan 2026 05:47:13 +0000 Subject: [PATCH] fix(oxfmt/tailwindcss): Bundle `prettier/plugins/*` (#17782) Fixes #17762 --- TL;DR: `experimentalTailwindcss` wasn't working in environments where `prettier` wasn't installed separately. We had agreed in the review that it wasn't necessary, but it seems it actually was needed. --- apps/oxfmt/tsdown.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/oxfmt/tsdown.config.ts b/apps/oxfmt/tsdown.config.ts index dffe879c840dc..93504d280f4e6 100644 --- a/apps/oxfmt/tsdown.config.ts +++ b/apps/oxfmt/tsdown.config.ts @@ -15,7 +15,12 @@ export default defineConfig({ noExternal: [ // Bundle it to control version "prettier", + + // We are using patched version, so we must bundle it + // Also, it internally loads plugins dynamically, so they also must be bundled "prettier-plugin-tailwindcss", + /^prettier\/plugins\//, + // Cannot bundle: worker.js runs in separate thread and can't resolve bundled chunks // Be sure to add it to "dependencies" in `npm/oxfmt/package.json`! // "tinypool",