Keeping everything in a single lua bytecode chunk?

前端 未结 4 1515
梦毁少年i
梦毁少年i 2021-02-02 16:32

I\'ve embedded lua together with a bytecode chunk into a project written in C. Now when I extend my lua code base by adding .lua files, is there a way to keep this code in a sin

4条回答
  •  一向
    一向 (楼主)
    2021-02-02 17:16

    After tried luac, luajit and squish, I found all of them requires you to maintain a file list to combine. That is tiresome when working on a project contain many lua files.

    So I wrote a little tool to merge lua files by analyzing requires

    Here it is: https://github.com/yi/node-lua-distiller

    Hope it will helpful.

提交回复
热议问题