Skip to content

fix(oxfmt): Patch to resolve string prettier module refs in tailwind plugin#19294

Closed
leaysgur wants to merge 1 commit intomainfrom
02-12-fix_oxfmt_patch_build_script_to_resolve_string_prettier_module_in_tailwind_plugin
Closed

fix(oxfmt): Patch to resolve string prettier module refs in tailwind plugin#19294
leaysgur wants to merge 1 commit intomainfrom
02-12-fix_oxfmt_patch_build_script_to_resolve_string_prettier_module_in_tailwind_plugin

Conversation

@leaysgur
Copy link
Member

@leaysgur leaysgur commented Feb 12, 2026

Temp fix for #19255, will be tracked #19293

Copilot AI review requested due to automatic review settings February 12, 2026 02:43
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-cli Area - CLI A-formatter Area - Formatter C-bug Category - Bug labels Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the apps/oxfmt build script to post-process the bundled output so prettier-plugin-tailwindcss can resolve its internal prettier/plugins/* module references at runtime when oxfmt is bundled into multiple chunks.

Changes:

  • Adds a build-time patch step that rewrites "prettier/plugins/<name>" string specifiers to local chunk URL hrefs.
  • Introduces helper functions to locate the Tailwind plugin “index” chunk and corresponding Prettier plugin chunks, then rewrites and persists the patched output.

@leaysgur leaysgur force-pushed the 02-12-fix_oxfmt_patch_build_script_to_resolve_string_prettier_module_in_tailwind_plugin branch from 4e2b0f5 to 56ccba0 Compare February 12, 2026 03:26
@leaysgur leaysgur changed the title fix(oxfmt): Patch build script to resolve string prettier module in tailwind plugin fix(oxfmt): Patch to resolve string prettier module refs in tailwind plugin Feb 12, 2026
@Dunqing Dunqing self-assigned this Feb 12, 2026
@Dunqing
Copy link
Member

Dunqing commented Feb 12, 2026

I will review this late today

@leaysgur leaysgur closed this Feb 13, 2026
@leaysgur leaysgur deleted the 02-12-fix_oxfmt_patch_build_script_to_resolve_string_prettier_module_in_tailwind_plugin branch February 13, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-formatter Area - Formatter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oxfmt: experimentalTailwindcss fails to format non-js files(html, angular, vue) on versions after 0.28

3 participants