Commit f44df80
authored
test(e2e): Assert Next.js Cloudflare worker bundle stays free of orchestrion bundler plugins (#23910)
Adds one test to the `nextjs-16-cf-workers` e2e app. After the OpenNext
build, it scans every script in `.open-next/` (except static assets) and
fails if the orchestrion bundler plugins show up, naming the offending
files.
The plugins are build-time-only, but they used to get compiled into the
worker bundle, where an unawaited `WebAssembly.compile()` crashed every
cold start. The bundle check is deterministic, unlike waiting for an
error to not appear.
The below issue is fixed in
#23906 already, this
PR is just adding the verification.
Closes #227941 parent c50fcb8 commit f44df80
1 file changed
Lines changed: 41 additions & 0 deletions
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments