Upgrade Babel to 8
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, webpack
- Área
- build-system
Línea de trabajo
Start with babel.config.js, which re-exports kolibri-build/babel.config and sets useBuiltIns, then check the peer ranges in pnpm-lock.yaml and jest_config/jest.conf.js. Done means pnpm install resolves one @babel/core major, pnpm build and pnpm test pass, and the CI frontend jobs are green. The issue states it is not open for contribution, so confirm with maintainers before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Dependabot PR #6013 bumped @babel/core 7.29.6 → 8.0.9, @babel/preset-env 7.29.5 → 8.0.7, @babel/plugin-transform-runtime 7.29.0 → 8.0.6 and @babel/plugin-syntax-import-assertions 7.28.6 → 7.29.7. It was closed unmerged because every webpack build and Jest run failed. Babel 8 removes preset-env's useBuiltIns, which our shared config still sets, and several build and test packages only accept Babel 7.
Complexity: Medium
Target branch: unstable
Context
babel.config.jsre-exportskolibri-build/babel.config, which setsuseBuiltIns. On #6013 both "Build frontend assets" and "Frontend tests" fail with:The 'useBuiltIns' option has been removedkolibri-build1.0.0 depends on its own@babel/core7.29.7,preset-env7.29.7,plugin-transform-runtime7.29.7 andbabel-loader10.1.1. With #6013 applied, two Babel cores load: webpack'sbabel-loaderruns on 7.29.7 while the rootpreset-env8.0.7 expects 8.x.- Packages whose peer range rejects
@babel/core8, perpnpm-lock.yaml:babel-jest29.7.0 (^7.8.0); 30.x accepts^8.0.0-0@vue/vue2-jest29.2.6 (@babel/core: 7.x,babel-jest: 29.x), used for.vuefiles injest_config/jest.conf.jsbabel-core7.0.0-bridge.0 (^7.0.0-0)
- Other Babel 8 breaking changes to check:
modules: "auto"now assumes ESM support, and@babel/runtime-corejs3no longer has corejs exports.
The Change
- Polyfill injection should move from
useBuiltInstobabel-plugin-polyfill-corejs3, the replacement Babel 8 names, either inkolibri-buildor overridden in Studio'sbabel.config.js. - These must move to Babel 8 together, since each one's Babel 7 copy or peer range breaks the others:
@babel/core,@babel/preset-env,@babel/plugin-transform-runtime,kolibri-build's Babel dependencies,babel-jest,@vue/vue2-jest, andbabel-core(bridge), the last removed if nothing still needs it. @babel/plugin-syntax-import-assertions7.29.7 is a minor bump and can land on its own.
Acceptance Criteria
-
pnpm installresolves a single@babel/coremajor, with no unmet Babel peer warnings -
pnpm buildsucceeds, and the production bundle still includes the core-js polyfills it ships today for the browserslist targets -
pnpm testpasses, including.vuecomponent specs - CI "Build frontend assets" and "Frontend tests" pass
AI usage
rtibblesbot (Claude Code) reviewed #6013, read its CI logs and the lockfile peer ranges, and drafted this issue.
Filed from #6013's review.
- Lenguaje dominante
- Python
- Estrellas
- 211
- Forks
- 317
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 23
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateAbiertoDEV: frontend P3 - low
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
learningequality/studio#5868 ·
Los mantenedores suelen responder en 1 día
-
TAG: tech update / debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
learningequality/studio#2245 ·
Los mantenedores suelen responder en 1 día
-
dependencies javascript
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
learningequality/studio#6381 ·
Los mantenedores suelen responder en 1 día
-
bug DEV: frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 20/100
learningequality/studio#6378 ·
Los mantenedores suelen responder en 1 día
-
dependencies DEV: backend python
Dificultad 4/5 1-2 días Aptitud para principiantes 25/100
learningequality/studio#6376 ·
Los mantenedores suelen responder en 1 día
Todos los issues de learningequality/studio
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
KonstantinStarovoytov/kitden#21 ·
Los mantenedores suelen responder en 1 día
-
RefactorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ehmatthes/gh-profiler#166 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
RizgarOzan/playcal#13 ·