请教升级到最新版本之后,很多模块判定为不是esm的类型,于是会持续被重复加载 #1571
Unanswered
watsonsong
asked this question in
Q&A
Replies: 1 comment 3 replies
-
互相import在nodejs那也可能触发错误。本来循环依赖就应该业务避免。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
升级之后产生一个问题,在import或者require的时候,如果两个ts文件有相互import的关系,然后产生了
JavaScript\puerts\modular.js:63: RangeError: Maximum call stack size exceeded
的错误。回退回1.0.5版本的modular文件则一切正常。看起来是在let m = {exports: {}};之后,并没有提前保存到缓存。
这样executeModule内部再发生require的时候会导致重复递归
Beta Was this translation helpful? Give feedback.
All reactions