Files from "common" folder when building html 5 (SOLVED)

Files from “common” folder are included into the build even if not included into project bundle resources. Building platform: Windows,
Defold version: 1.2.157,

Example project attached.

test.zip (2.6 KB)

3 Likes

Not sure I understand, in the the script you are actually requiring “common/helper.lua”?

local helper = require("common.helper")

function init(self)
	helper.init()
end
-- ...

He means Lua files are included as actual Lua files, not just compiled into the binary.
image

2 Likes

Exactly, thanks!

I see now, thanks!

Working on a fix for this, hopefully it should be available in the small bugfix release that we are planning to release soon.

3 Likes

Solved in Defold 1.2.158 has been released

1 Like