icestark icon indicating copy to clipboard operation
icestark copied to clipboard

stark-module 加载资源异常

Open GreyZhou opened this issue 2 years ago • 0 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? 项目使用 @ice/stark-module 下的 loadModule 方法加载放在 cdn 上的 js资源

本地(子应用)时表现正常,loadModule 方法返回了 js 资源的执行结果(component 下的内容) image

预发环境(有主应用)表现异常,loadModule 方法返回了预期之外的东西 image

通过对比,目前确定本地和预发都正常 fectch 了对应的 js 资源,并都正常执行了(通过资源内的 log 确认)。通过打印 这行 发现libraryExport的赋值在预发环境有问题 image image

other

  • @ice/[email protected]
  • 虽然本地表现正常,但是 libraryExport 值也有一些出入
    • 包 @alife/module-play-node --> module
    • 包 @ali/biz-play-comp --> @ali/biz-play-comp

GreyZhou avatar Jan 05 '23 10:01 GreyZhou