Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Task】过时依赖升级 #11353

Open
1 of 11 tasks
fz6m opened this issue Jul 2, 2023 · 0 comments
Open
1 of 11 tasks

【Task】过时依赖升级 #11353

fz6m opened this issue Jul 2, 2023 · 0 comments

Comments

@fz6m
Copy link
Member

fz6m commented Jul 2, 2023

背景

umi 仓库过时依赖需升级。

升级 core-js

升级 father

升级仓库内 TS 版本至 5.2

  • 问题:由于 cypress v12 和 TS v5 还有很多不兼容的报错,故升级 TS 到 v5 的同时还需要配套升级 cypress 到最新版,并解决 CI 等配套问题。

es-module-lexer rust 版本兼容 using 语法

babel / esbuild / swc 兼容 using

  • 升级 babel 版本,添加插件支持 using 语法。
  • 升级 esbuild 版本,支持 using 语法。
  • 升级 swc 版本,支持 using 语法。
  • 测试 using / await using 语法在 babel / swc / esbuild 转译模式的运作是否正常。

其他

  • 升级所有 template 模板的全部依赖版本至最新。

  • 跟进 father 支持转译 using 语法。

  • 考虑在使用 @umijs/utils 中的 register.restore 时,使用 using 自动释放资源,注意 Symbol.dispose 在产物结果中的兼容性(polyfill 是否含有):

      Symbol.dispose ??= Symbol("Symbol.dispose");
      Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
@fz6m fz6m changed the title 【Task】支持使用 TS 5.2 using 语法 【Task】过时依赖升级 Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant