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

regeneratorruntime is not defined #6

Closed
zhou94 opened this issue Feb 25, 2022 · 3 comments
Closed

regeneratorruntime is not defined #6

zhou94 opened this issue Feb 25, 2022 · 3 comments

Comments

@zhou94
Copy link

zhou94 commented Feb 25, 2022

看src代码用了async await
image
但是打包的时候未做处理 导致打出来的包里含有regeneratorRuntime
image

@zhou94
Copy link
Author

zhou94 commented Feb 25, 2022

由于@antv/xflow-core引用了该包,导致 使用vite时会报错

@BroKun
Copy link
Member

BroKun commented Mar 6, 2022

regeneratorRuntime 是 babel 转换中产生的,是预期之外的。
我们现在使用的打包工具 father 还不支持灵活的指定目标产物环境,预计在月底才会升级。
我现在先想办法兼容下这个问题。

@BroKun
Copy link
Member

BroKun commented Mar 6, 2022

0.3.1 版本修复了这个问题,打包工具从 rollup 修改为 babel,由于 father 暂不提供自由的打包目标指定能力,mana-common 暂时使用 target: node 10 解决问题。

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

2 participants