Repository navigation
Commit 1bac125
tsouth89
test(build): check the bundle is self-contained, not just free of externals
The bundle scan only asserted that external packages were absent. A build that
externalized everything would pass it: source-file regions still exist, so the
region count is non-zero and no external is inlined. That is the exact failure
this change exists to prevent, because those packages are not covered by the
unpack globs either and the WSL backend dies on ERR_MODULE_NOT_FOUND.
The scan now reports every package it saw in a region, and the build asserts
"effect" is among them. Every server module imports it, so it is inlined in any
correctly bundled build -- 209 regions in the current one -- and its absence
means the dependencies went external again.
Verified against the emitted bundle: 788 regions, no external violations,
effect inlined, 25 third-party packages inlined in total.
Reported by macroscope.1 parent 1e5a52a commit 1bac125
3 files changed
Lines changed: 69 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
382 | 398 | | |
383 | 399 | | |
384 | 400 | | |
| |||
1851 | 1867 | | |
1852 | 1868 | | |
1853 | 1869 | | |
| 1870 | + | |
1854 | 1871 | | |
1855 | 1872 | | |
1856 | 1873 | | |
1857 | 1874 | | |
1858 | 1875 | | |
| 1876 | + | |
1859 | 1877 | | |
1860 | 1878 | | |
1861 | 1879 | | |
| |||
1869 | 1887 | | |
1870 | 1888 | | |
1871 | 1889 | | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
1872 | 1903 | | |
1873 | 1904 | | |
1874 | 1905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
238 | 259 | | |
239 | 260 | | |
240 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| 129 | + | |
121 | 130 | | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
126 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
127 | 138 | | |
128 | 139 | | |
129 | 140 | | |
130 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
131 | 146 | | |
0 commit comments