Commit c135bf0
fix(templates): ignore wrangler when bundling to fix template styles (#14067)
### 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
Co-authored-by: Ricardo Tavares <rtavares@cloudflare.com>1 parent c59df45 commit c135bf0
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
0 commit comments