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
[Bug] 更新捆绑的@babel/*
#9664
Comments
1 task
==更新== {
"resolutions": {
"@babel/plugin-transform-typescript": "7.19.3"
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens?
babel 在 v7.20.0 中添加了对
TSSatisfiesExpression
的支持似乎 umi 捆绑了 babel,这导致部分依赖新版本
@babel/types
的 babel 插件无法正常工作babel/babel#15089 (comment)
比较简单快速的方法是更新捆绑的 babel
而如果要为了以后的兼容,可以考虑不捆绑
@babel/types
,因为所有插件都可能会依赖新版本的@babel/types
Mini Showcase Repository(REQUIRED)
antvis/L7#1451
说实话这个重现不怎么小... 但是我不了解 umi 和 L7,也没法提供更好的例子了
How To Reproduce
Steps to reproduce the behavior: 1. 2.
git clone https://github.com/antvis/L7
yarn
yarn build
失败
Expected behavior 1. 2.
git clone https://github.com/antvis/L7
yarn
yarn build
成功
Context
The text was updated successfully, but these errors were encountered: