Bundle Lua files into one:
lua-bundler f "./example/src/Main.lua" "./example/dist/bundle.lua"
Inject to war3map.lua:
lua-bundler w "./example/src/Main.lua" "./example/dist/war3map.lua"
Add -p
(production) to minify bundled lua
lua-bundler f "./example/src/Main.lua" "./example/dist/bundle.lua" -p
lua-bundler w "./example/src/Main.lua" "./example/dist/war3map.lua" -p
require("Modules/Module")
require "Modules.Module"
e.g.
pkg . -t node12-win-x64