杨必赞
杨必赞
Really need this
没有复现。 仓库里添加了一个build-minigame目录,将篮球demo build了出来。你可以对比一下。
https://github.com/zombieyang/puerts_unity_webgl_demo/blob/master/packages/webgl-jsbuild/upm/Javascripts~/index.js#L17 自己魔改下这里的babel配置。理论上项目大了都应自己写JS构建
https://github.com/zombieyang/puerts_unity_webgl_demo?tab=readme-ov-file#faq FAQ里有答案
https://github.com/Tencent/puerts/blob/master/unity/Assets/core/upm/Editor/Resources/puerts/templates/dts.tpl.mjs#L241 here is an example. and I remember that some has submitted a PR to support `for (var item of CSDic)` #1555 . You can try
Well you can try the first example
c++ node modules is not supported or you should submit it to PuerTS
I'm not quite sure if it still make sense after such a long time. Maybe you can consider cherry-picking dd56ec0
> I have rebased this PR to include only [dd56ec0](https://github.com/nodejs/node-gyp/commit/dd56ec0637f90ecae9020c5dfff14e42904865b4) Thank you, will it merge?
Not recommend to do so I think it is a performance wasting. Technically, it is possible