Commit e405bb5
fix: copy frontend/browserslist into Docker build context (#1781)
* fix: copy frontend/browserslist into Docker build context
Without this file present in /app/frontend during the production build,
Angular falls back to the default browserslist (broader, older browser
targets), which forces extra transpilation and inflates the initial
bundle past the 5MB budget. Copying the committed browserslist preserves
the intended modern targets and keeps the bundle within budget.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: copy frontend/.yarnrc.yml into Docker build context
Without .yarnrc.yml, the container ignores yarnPath (Yarn 3.4.1) and
falls back to packageManager: yarn@1.22.22 via corepack. Yarn 1 can't
parse the Yarn berry-format yarn.lock, silently ignores --immutable,
and re-resolves dependencies from package.json. This pulled mermaid
^11.12.1 forward to 11.15.0 (vs locked 11.12.2), inflating the bundled
scripts entry by ~560 KB and pushing the initial bundle over the 5MB
budget. Copying .yarnrc.yml restores Yarn 3 and the locked resolution.
Verified: Docker initial bundle drops from 5.47 MB to 4.92 MB,
matching the local build.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7b279d7 commit e405bb5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments