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

#1

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

#2

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
-- ...
0 Likes

#3

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

2 Likes

#4

Exactly, thanks!

0 Likes

#5

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

#6

Solved in Defold 1.2.158 has been released

1 Like