Skip to content

Conversation

@rjgtav
Copy link
Contributor

@rjgtav rjgtav commented Oct 3, 2025

What?

Adds the missing /* webpackIgnore: true */ annotation when importing wrangler, as in the original OpenNext patch.

Why?

It looks like Webpack messes up the template styles when bundling the Cloudflare template, which causes some issues such as black text on black background or larger than usual font size.

How?

By telling Webpack to ignore wrangler when bundling.

This solution was found by @nwong212 in the original issue, I'm just submitting the fix after checking my self that it indeed fixes the bundling.

Fixes #13989

@paulpopus paulpopus merged commit c135bf0 into payloadcms:main Oct 4, 2025
24 checks passed
@dhyacno
Copy link

dhyacno commented Oct 4, 2025

Super cool

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

🚀 This is included in version v3.59.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants