chore: remove dead code in maps & legacy build#2874
Conversation
- maps: 删除三份零引用的 theme.ts (map/, mapbox/, earth/,与 utils/theme.ts 逐字节相同且无任何 import); 删除 tdtmap 孤儿 logo.css (无 map.ts 引用) - legacy: 删除迁移到 father 之前的旧 rollup 构建脚本 (rollup.config*.js, rollup-plugin-*.js, bundle.ts),全仓无引用 构建验证: @antv/l7-maps esm/cjs (88 文件) + umd 全部通过
|
There was a problem hiding this comment.
Code Review
This pull request cleans up the codebase by removing several unused configuration files, Rollup plugins (such as glsl and inline-worker), build configurations, duplicate MapTheme definitions, and CSS styles. I have no feedback to provide as there are no review comments to evaluate.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
清理死代码(零行为变更)
上一轮包合并 (12→8) 后的走查中发现的零引用文件,纯删除,无新增代码。
maps: 删除零引用 theme.ts ×3
map/theme.ts、mapbox/theme.ts、earth/theme.ts与utils/theme.ts逐字节相同(diff全空),且全仓无任何import:maps: 删除 tdtmap 孤儿 logo.css
其余 6 个适配器的
map.ts都有import './logo.css',唯独tdtmap/map.ts没有,但目录里留有logo.css—— 孤儿文件。legacy: 删除旧 rollup 构建脚本
迁移到
father之前的构建脚本(rollup.config.js、rollup.config.worker.js、rollup-plugin-glsl.js、rollup-plugin-inline-worker.js、rollup-plugin-miniapp.js、bundle.ts),全仓无引用。legacy/dev-docs/、legacy/scripts/作为归档保留。验证
@antv/l7-mapsesm/cjs + umd 全部构建通过utils/theme.ts、amap-next/theme.tstsc、eslint通过改动
10 files changed, 336 deletions(-)