我在cocos creater 2.4.6 版本
项目使用了 lodash 库做计算。
web 运行正常。
xcode. 编译运行时候,发现启动出错:
2022-07-03 11:17:51.456019+0800 spacewars-mobile[12461:124198] (null)
Initializing JavaScriptCore
JS: Enable batch GL commands optimization!
ScriptEngine::evalString script assets/main/index.dd7f5.jsc, failed!
ERROR: Error: Cannot find module ‘lodash’, location: assets/main/index.dd7f5.jsc
16
STACK:
感觉是打包的时候,js没有打包对应的 第三方库‘lodash’进来。
这种情况一般如何解决?
cocos creator 引用第三方库,是从哪里的配置知晓 需要打哪些包 到 产品包里面的?