Upgrade Babel to 8
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 8/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, webpack
- 领域
- build-system
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
❌ 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.
- 主要语言
- Python
- 星标
- 211
- 派生
- 317
- 平均合并
- 4 天 2 小时
- 30 天内合并 PR
- 23
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/studio 的其他 Issue
-
DEV: frontend P3 - low
难度 2/5 1-3 小时 新手友好度 74/100
learningequality/studio#5868 ·
维护者通常 1 天内回复
-
TAG: tech update / debt
难度 2/5 1-3 小时 新手友好度 62/100
learningequality/studio#2245 ·
维护者通常 1 天内回复
-
dependencies javascript
难度 3/5 1-2 天 新手友好度 25/100
learningequality/studio#6381 ·
维护者通常 1 天内回复
-
bug DEV: frontend
难度 2/5 1-3 小时 新手友好度 20/100
learningequality/studio#6378 ·
维护者通常 1 天内回复
-
dependencies DEV: backend python
难度 4/5 1-2 天 新手友好度 25/100
learningequality/studio#6376 ·
维护者通常 1 天内回复
查看 learningequality/studio 的全部 Issue
相似的 Issue
-
fuzz fuzz-unconfirmed
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 86/100
neilsh/stunt-reel#220 ·
维护者通常 1 天内回复
-
[Issue]: use_fp4_cache is accepted but ignored; the launcher always writes FP8 records可能已有人在做 @0z5a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area: cli priority: p3 size: S type: bug
难度 2/5 1-3 小时 新手友好度 83/100
finos/open-resource-broker#757 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 6 天内回复