Commit fd224e4
committed
task(settings): Improve webpack chunking
Because:
- We can get better cache performance if things that don't change often are chunked into their own packages
- We can getter optimized network behavior with HTTP/2 and modern browsers by splitting up js files this way, ie multiple files can be downloaded concurrently.
This Commit:
- Creates a chunk for react and reach router called the 'presentation' chunk
- Creates a chunk for large utils like moment or ua-parser called utils
- Creates a chunk for observability libs like glean or sentry
- Creates a chunk for network libs like apollo and gql1 parent 7d23742 commit fd224e4
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
308 | 332 | | |
309 | 333 | | |
310 | 334 | | |
| |||
0 commit comments