From 5ef2255f3c039e73752d2c6c4069d851501f46dc Mon Sep 17 00:00:00 2001 From: Nigel Sheridan-Smith Date: Tue, 2 Jun 2026 21:15:51 +1000 Subject: [PATCH] build: add core-js for frontend build compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add core-js as a devDependency to resolve Babel polyfill requirements for @babel/preset-env under pnpm. Changes: - Add core-js: ^2.6.12 to devDependencies - Regenerate pnpm-lock.yaml Why: - @babel/preset-env requires core-js for polyfill resolution - Without it, frontend builds may fail with module resolution errors - This is a build-time dependency only Testing: - ✅ Python tests pass (frontend-only change) - ✅ Frontend tests pass - ✅ pnpm install succeeds Note: - core-js 2.x is used (not 3.x) for compatibility with existing Babel config - Deprecation warning is expected but acceptable for this version Co-authored-by: Cursor --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 810287b952..8267d847dc 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "babel-plugin-istanbul": "^6.1.1", "babel-plugin-transform-builtin-extend": "^1.1.2", "copy-webpack-plugin": "^13.0.1", + "core-js": "^2.6.12", "css-loader": "^7.1.4", "cypress": "^11.2.0", "dayjs": "^1.11.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 55b8abcfc1..306edbef1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -197,6 +197,9 @@ importers: copy-webpack-plugin: specifier: ^13.0.1 version: 13.0.1(webpack@5.105.3) + core-js: + specifier: ^2.6.12 + version: 2.6.12 css-loader: specifier: ^7.1.4 version: 7.1.4(webpack@5.105.3)