mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
build: put the @babel pins back, and make them fail loudly if dropped again (#653)
The pins that fixed the blank React /map were removed as collateral when the Mantine commit rewrote `overrides` for TypeScript 5. Nothing failed, so nothing objected: the map kept working only because package-lock.json still happened to resolve @babel/core to 7.20.12, and devices run `npm install`, not `npm ci`. Verified on this tree rather than assumed. Raising @babel/core to 7.29.7 and reinstalling floats the whole pipeline (traverse/generator/types to 7.29.8) and `npm run build` then fails outright: "'opera_mobile' is not a valid target", from a helper-compilation-targets that floated away from the browserslist data it was pinned against. With the pins restored the build compiles, all 141 resolved copies match, and /map renders from the built bundle. The test walks every path in the lockfile, not just node_modules/<name>: npm nests a second copy whenever versions conflict, and a nested copy that escaped the override would put the new pipeline back into the build while the top-level entry still read correctly. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f1bc52d9c6
commit
c560ba6fa5
3 changed files with 462 additions and 353 deletions
|
|
@ -72,6 +72,22 @@
|
|||
]
|
||||
},
|
||||
"overrides": {
|
||||
"@babel/code-frame": "7.29.0",
|
||||
"@babel/compat-data": "7.20.14",
|
||||
"@babel/core": "7.20.12",
|
||||
"@babel/generator": "7.29.1",
|
||||
"@babel/helper-compilation-targets": "7.20.7",
|
||||
"@babel/helper-globals": "7.28.0",
|
||||
"@babel/helper-module-imports": "7.28.6",
|
||||
"@babel/helper-module-transforms": "7.28.6",
|
||||
"@babel/helper-string-parser": "7.27.1",
|
||||
"@babel/helper-validator-identifier": "7.28.5",
|
||||
"@babel/helper-validator-option": "7.18.6",
|
||||
"@babel/helpers": "7.27.0",
|
||||
"@babel/parser": "7.29.3",
|
||||
"@babel/template": "7.28.6",
|
||||
"@babel/traverse": "7.29.0",
|
||||
"@babel/types": "7.29.0",
|
||||
"react-scripts": {
|
||||
"typescript": "$typescript"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue