微信插件:两个模块相互引用导致 Maximum call stack size exceeded ?

发布于 9 年前作者 min685675 次浏览最后编辑 9 年前来自 ask

非插件是没问题的。

例子:

// a.js

import {b} from './b.js'
 
export function a() {}

// b.js

import {a} from './a.js'
 
export function b() {}
2 回复
gang46
gang461 楼6 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

yongdeng
yongdeng2 楼6 年前

https://developers.weixin.qq.com/s/rgsEFEmT7Vdz

示例代码在 plugin> api 下