Commit 730cb46
fix(ci): drop preserveModules from GXT-mode build for testem compat
`preserveModules: true` produced ~1000 per-source chunks in the GXT-mode
build output. testem-based Basic Test loads the static dist/ via Chrome
and waits for `testem.js` to be reachable from the page; with that many
script tags the cold-cache page load blew past the 120s
`browser_start_timeout`, producing "Browser failed to connect within
120s. testem.js not loaded?" with zero tests run.
The setting was added to support the GXT smoke harness. That harness
runs against Vite's dev server (`pnpm vite --port 5180`), not a built
dist, so the rollup build config is irrelevant to it. Dropping the
special case yields a single bundled chunk (~7.5MB / ~1.4MB gzipped)
that testem can load fast. Smoke harness path is unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 392eeec commit 730cb46
1 file changed
Lines changed: 12 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
0 commit comments