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",